Qore SqlUtil Module Reference 1.9.1
Loading...
Searching...
No Matches
SqlUtilDbSpecificDataType.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
32namespace SqlUtil {
34
40
41public:
42protected:
44 string name;
45
48
49public:
50
52 constructor(string native_type, bool nullable, *hash<auto> options) ;
53
54
56 string getName();
57
58
60 string getDesc();
61
62
64 *Type getValueType();
65
66
68 *AbstractDataProviderType getElementType();
69
70
72 *hash<string, AbstractDataField> getFields();
73
74
76
80 auto acceptsValue(auto value);
81
82
84 hash<string, bool> getAcceptTypeHash();
85
86
88 hash<string, bool> getReturnTypeHash();
89
90};
91};
data type for DB-specific types that are not convertible to other types
Definition: SqlUtilDbSpecificDataType.qc.dox.h:39
hash< string, bool > getAcceptTypeHash()
returns a hash of types accepted by this type
string name
the type name
Definition: SqlUtilDbSpecificDataType.qc.dox.h:44
*AbstractDataProviderType getElementType()
returns the subtype (for lists or hashes) if there is only one
string getDesc()
Returns the description.
hash< string, bool > getReturnTypeHash()
returns a hash of types returned by this type
bool nullable
nullable flag
Definition: SqlUtilDbSpecificDataType.qc.dox.h:47
*Type getValueType()
returns the base type for the type, if any
constructor(string native_type, bool nullable, *hash< auto > options)
creates the object from the given parameters
auto acceptsValue(auto value)
returns the value if the value can be assigned to the type
string getName()
returns the type name
*hash< string, AbstractDataField > getFields()
returns the fields of the data structure; if any
Qore AbstractDatabase class definition.
Definition: AbstractDatabase.qc.dox.h:26