Qore Programming Language Reference Manual  0.8.7
 All Classes Namespaces Functions Variables Groups Pages
QC_Datasource.dox.h
1 
2 namespace Qore::SQL {
4 
73 
74 public:
76 
90 nothing beginTransaction();
91 
92 public:
94 
103 nothing close();
104 
105 public:
107 
116 nothing commit();
117 
118 public:
120 
138  constructor(string driver, *string user, *string pass, *string db, *string encoding, *string host, *softint port, *hash options);
139 
140 public:
142 
155  constructor(string desc);
156 
157 public:
159 
178  constructor(hash opts);
179 
180 public:
182 
187  copy();
188 
189 public:
191 
206 
207 public:
209 
216  destructor();
217 
218 public:
220 
236 any exec(string sql, ...);
237 
238 public:
240 
258 any execRaw(string sql);
259 
260 public:
262 
272 bool getAutoCommit();
273 
274 public:
276 
288 int getCapabilities();
289 
290 public:
292 
305 
306 public:
308 
317 any getClientVersion();
318 
319 public:
321 
333 string getDBCharset();
334 
335 public:
337 
349 string getDBEncoding();
350 
351 public:
353 
363 *string getDBName();
364 
365 public:
367 
377 string getDriverName();
378 
379 public:
381 
391 *string getHostName();
392 
393 public:
395 
407 string getOSCharset();
408 
409 public:
411 
421 *string getOSEncoding();
422 
423 public:
425 
437 any getOption(string opt);
438 
439 public:
441 
456 
457 public:
459 
469 *string getPassword();
470 
471 public:
473 
483 *int getPort();
484 
485 public:
487 
498 any getServerVersion();
499 
500 public:
502 
513 
514 public:
516 
526 *string getUserName();
527 
528 public:
530 
540 bool inTransaction();
541 
542 public:
544 
555 nothing open();
556 
557 public:
559 
568 nothing reset();
569 
570 public:
572 
581 nothing rollback();
582 
583 public:
585 
616 any select(string sql, ...);
617 
618 public:
620 
641 any selectRow(string sql, ...);
642 
643 public:
645 
671 any selectRows(string sql, ...);
672 
673 public:
675 
681 nothing setAutoCommit(bool ac = True);
682 
683 public:
685 
696 nothing setDBCharset(string encoding);
697 
698 public:
700 
709 nothing setDBEncoding(string encoding);
710 
711 public:
713 
722 nothing setDBName(string db);
723 
724 public:
726 
735 nothing setHostName(string host);
736 
737 public:
739 
749  setOption(string opt, any val);
750 
751 public:
753 
762 nothing setPassword(string pass);
763 
764 public:
766 
775 nothing setPort(softint port = 0);
776 
777 public:
779 
786 nothing setTransactionLockTimeout(timeout timeout_ms = 0);
787 
788 public:
790 
799 nothing setUserName(string user);
800 
801 public:
803 
820 int transactionTid();
821 
822 public:
824 
842 any vexec(string sql, *softlist vargs);
843 
844 public:
846 
874 any vselect(string sql, *softlist vargs);
875 
876 public:
878 
900 any vselectRow(string sql, *softlist vargs);
901 
902 public:
904 
932 any vselectRows(string sql, *softlist vargs);
933 };
938 
940  const DSDB2 = "db2";
942  const DSFreeTDS = "freetds";
944  const DSMSSQL = "freetds";
946  const DSMySQL = "mysql";
948  const DSOracle = "oracle";
950  const DSPGSQL = "pgsql";
952  const DSSQLite3 = "sqlite3";
954  const DSSybase = "sybase";
956 
960 
988 };