Qore SqlUtil Module Reference  1.7.5
SqlUtil::SqlUtilStringType Class Reference

type for string / varchar / char columns More...

Inheritance diagram for SqlUtil::SqlUtilStringType:

Public Member Methods

auto acceptsValue (auto value)
 returns the value if the value can be assigned to the type More...
 
 constructor (string native_type, bool nullable, *hash< auto > options)
 creates the object More...
 
string getName ()
 returns the type name
 
*hash< string, hash< DataProviderTypeOptionInfo > > getSupportedOptions ()
 returns supported options
 

Private Attributes

string name
 the type name
 

Detailed Description

type for string / varchar / char columns

Since
SqlUtil 1.6

Member Function Documentation

◆ acceptsValue()

auto SqlUtil::SqlUtilStringType::acceptsValue ( auto  value)
virtual

returns the value if the value can be assigned to the type

Parameters
valuethe value to assign to the type
Returns
the value to be assigned; can be converted by the type

Reimplemented from DataProvider::QoreStringDataTypeBase.

◆ constructor()

SqlUtil::SqlUtilStringType::constructor ( string  native_type,
bool  nullable,
*hash< auto >  options 
)

creates the object

we let the DB drive do any encoding conversions