Qore SqlUtil Module Reference  1.7.3
AbstractSqlUtilBase.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3 
25 // minimum required Qore version
26 // assume local scope for variables, do not use "$" signs
27 // require type definitions everywhere
29 // enable all warnings
30 
32 namespace SqlUtil {
34 class AbstractSqlUtilBase : public Serializable {
35 
36 public:
37 protected:
39  string dsdesc;
41  *hash<auto> opts;
43  transient AbstractDatasource ds;
45  transient Mutex l();
46 
47 public:
48 
49  // assigs the object's members after deserialization
50 private:
51  deserializeMembers(hash<auto> members);
52 public:
53 
54 
55  // serializes the object's data to a hash
56 private:
57  hash<auto> serializeMembers(hash<auto> members);
58 public:
59 
60 
62 
67 protected:
68  constructor(AbstractDatasource nds, *hash nopts);
69 public:
70 
71 
72  static string makeDatasourceDesc(AbstractDatasource ds);
73 
74 protected:
75  validateOptionsIntern(string err, hash ropt, reference<hash> opt, string tag);
76 public:
77 
78 
79 protected:
80  static validateOptionIntern(string err, string type, reference opt, string k, string tag);
81 public:
82 
83 
85 protected:
87 public:
88 
89 
92 
93 
95  string getDriverName();
96 
97 
99  string getDatasourceDesc();
100 
101 };
102 };
Qore::SQL::AbstractDatasource getDatasource()
gets the underlying AbstractDatasource
*hash< auto > opts
option hash
Definition: AbstractSqlUtilBase.qc.dox.h:41
base class for abstract SqlUtil classes
Definition: AbstractSqlUtilBase.qc.dox.h:34
transient AbstractDatasource ds
the connection to the database server
Definition: AbstractSqlUtilBase.qc.dox.h:43
Qore AbstractDatabase class definition.
Definition: AbstractDatabase.qc.dox.h:32
string getDatasourceDesc()
returns a descriptive string for the datasource
constructor(AbstractDatasource nds, *hash nopts)
creates the object; private constructor
validateHashKeysForWhitespaces(auto node)
Check input node for all hash keys - if it contains a key with whitespace in the beginning or at the ...
string getDriverName()
returns the database driver name
string type(auto arg)
hash< auto > hash(object obj)
string dsdesc
datasource description
Definition: AbstractSqlUtilBase.qc.dox.h:39
transient Mutex l()
mutex for atomic actions