Qore SqlUtil Module Reference 1.9
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
55
57 string getName();
58
59
61 string getDesc();
62
63
65 *Type getValueType();
66
67
69 *AbstractDataProviderType getElementType();
70
71
73 *hash<string, AbstractDataField> getFields();
74
75
77
81 auto acceptsValue(auto value);
82
83
85 hash<string, bool> getAcceptTypeHash();
86
87
89 hash<string, bool> getReturnTypeHash();
90
91};
92};
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