All Classes Namespaces Functions Variables Groups Pages
QC_Datasource.dox.h
namespace Qore::SQL {
class Datasource : public AbstractDatasource {
public:
nothing beginTransaction();
public:
nothing close();
public:
nothing commit();
public:
constructor(string driver, *string user, *string pass, *string db, *string encoding, *string host, *softint port, *hash options);
public:
constructor(string desc);
public:
constructor(hash opts);
public:
copy();
public:
bool currentThreadInTransaction();
public:
destructor();
public:
any exec(string sql, ...);
public:
any execRaw(string sql);
public:
bool getAutoCommit();
public:
int getCapabilities();
public:
list getCapabilityList();
public:
any getClientVersion();
public:
string getDBCharset();
public:
string getDBEncoding();
public:
*string getDBName();
public:
string getDriverName();
public:
*string getHostName();
public:
string getOSCharset();
public:
*string getOSEncoding();
public:
any getOption(string opt);
public:
hash getOptionHash();
public:
*string getPassword();
public:
*int getPort();
public:
any getServerVersion();
public:
int getTransactionLockTimeout();
public:
*string getUserName();
public:
bool inTransaction();
public:
nothing open();
public:
nothing reset();
public:
nothing rollback();
public:
any select(string sql, ...);
public:
any selectRow(string sql, ...);
public:
any selectRows(string sql, ...);
public:
nothing setAutoCommit(bool ac = True);
public:
nothing setDBCharset(string encoding);
public:
nothing setDBEncoding(string encoding);
public:
nothing setDBName(string db);
public:
nothing setHostName(string host);
public:
setOption(string opt, any val);
public:
nothing setPassword(string pass);
public:
nothing setPort(softint port = 0);
public:
nothing setTransactionLockTimeout(timeout timeout_ms = 0);
public:
nothing setUserName(string user);
public:
int transactionTid();
public:
any vexec(string sql, *softlist vargs);
public:
any vselect(string sql, *softlist vargs);
public:
any vselectRow(string sql, *softlist vargs);
public:
any vselectRows(string sql, *softlist vargs);
};
const DSDB2 = "db2";
const DSFreeTDS = "freetds";
const DSMSSQL = "freetds";
const DSMySQL = "mysql";
const DSOracle = "oracle";
const DSPGSQL = "pgsql";
const DSSQLite3 = "sqlite3";
const DSSybase = "sybase";
const DBI_CAP_BIND_BY_PLACEHOLDER = DBI_CAP_BIND_BY_PLACEHOLDER;
const DBI_CAP_BIND_BY_VALUE = DBI_CAP_BIND_BY_VALUE;
const DBI_CAP_CHARSET_SUPPORT = DBI_CAP_CHARSET_SUPPORT;
const DBI_CAP_HAS_EXECRAW = DBI_CAP_HAS_EXECRAW;
const DBI_CAP_HAS_NUMBER_SUPPORT = DBI_CAP_HAS_NUMBER_SUPPORT;
const DBI_CAP_HAS_OPTION_SUPPORT = DBI_CAP_HAS_OPTION_SUPPORT;
const DBI_CAP_HAS_SELECT_ROW = DBI_CAP_HAS_SELECT_ROW;
const DBI_CAP_HAS_STATEMENT = DBI_CAP_HAS_STATEMENT;
const DBI_CAP_LOB_SUPPORT = DBI_CAP_LOB_SUPPORT;
const DBI_CAP_SERVER_TIME_ZONE = DBI_CAP_SERVER_TIME_ZONE;
const DBI_CAP_STORED_PROCEDURES = DBI_CAP_STORED_PROCEDURES;
const DBI_CAP_TIME_ZONE_SUPPORT = DBI_CAP_TIME_ZONE_SUPPORT;
const DBI_CAP_TRANSACTION_MANAGEMENT = DBI_CAP_TRANSACTION_MANAGEMENT;
};