Qore SqlUtil Module Reference  1.7
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 };
SqlUtil::SqlUtilDbSpecificDataType::getFields
*hash< string, AbstractDataField > getFields()
returns the fields of the data structure; if any
SqlUtil::SqlUtilDbSpecificDataType::getReturnTypeHash
hash< string, bool > getReturnTypeHash()
returns a hash of types returned by this type
DataProvider::AbstractDataProviderType
SqlUtil::SqlUtilDbSpecificDataType::getElementType
*AbstractDataProviderType getElementType()
returns the subtype (for lists or hashes) if there is only one
SqlUtil::SqlUtilDbSpecificDataType::getName
string getName()
returns the type name
SqlUtil::SqlUtilDbSpecificDataType::getAcceptTypeHash
hash< string, bool > getAcceptTypeHash()
returns a hash of types accepted by this type
SqlUtil::SqlUtilDbSpecificDataType::constructor
constructor(string native_type, bool nullable, *hash< auto > options)
creates the object from the given parameters
SqlUtil::SqlUtilDbSpecificDataType::acceptsValue
auto acceptsValue(auto value)
returns the value if the value can be assigned to the type
SqlUtil::SqlUtilDbSpecificDataType::name
string name
the type name
Definition: SqlUtilDbSpecificDataType.qc.dox.h:44
DataProvider::AbstractDataProviderType::options
hash< auto > options
SqlUtil
Qore AbstractDatabase class definition.
Definition: AbstractDatabase.qc.dox.h:32
SqlUtil::SqlUtilDbSpecificDataType
data type for DB-specific types that are not convertible to other types
Definition: SqlUtilDbSpecificDataType.qc.dox.h:39
SqlUtil::SqlUtilDbSpecificDataType::nullable
bool nullable
nullable flag
Definition: SqlUtilDbSpecificDataType.qc.dox.h:47
SqlUtil::SqlUtilDbSpecificDataType::getValueType
*Type getValueType()
returns the base type for the type, if any