Qore SqlUtil Module Reference  1.7.1
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 
32 namespace SqlUtil {
34 
40 
41 public:
42 protected:
44  string name;
45 
47  bool nullable;
48 
49 public:
50 
52  constructor(string native_type, bool nullable, *hash<auto> options) ;
53 
54 
56  string getName();
57 
58 
60  *Type getValueType();
61 
62 
64  *AbstractDataProviderType getElementType();
65 
66 
68  *hash<string, AbstractDataField> getFields();
69 
70 
72 
76  auto acceptsValue(auto value);
77 
78 
80  hash<string, bool> getAcceptTypeHash();
81 
82 
84  hash<string, bool> getReturnTypeHash();
85 
86 };
87 };
data type for DB-specific types that are not convertible to other types
Definition: SqlUtilDbSpecificDataType.qc.dox.h:39
*hash< string, AbstractDataField > getFields()
returns the fields of the data structure; if any
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
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
hash< string, bool > getAcceptTypeHash()
returns a hash of types accepted by this type
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
Qore AbstractDatabase class definition.
Definition: AbstractDatabase.qc.dox.h:32