169            hash<string, string> collations;
 
  204        constructor(
string n, Columns c, ForeignConstraintTarget t) ;
 
  207        string getCreateSql(
string table_name, *hash<auto> opt);
 
  214        string getCreateSql(
string name, 
string table_name, *hash<auto> opt);
 
  217        string getAddSql(
string name, 
string table_name, *hash<auto> opt);
 
  327        string getCreateSql(
string table_name, *hash<auto> opts);
 
  330        list<string> getRenameSql(
string table_name, 
string new_name);
 
  333        string getCreateSql(
string name, 
string table_name, *hash<auto> opts);
 
  337        string getDropSql(
string table_name);
 
  348        constructor(hash<auto> c) ;
 
  351        string getCreateSql(
string table_name, *hash<auto> opts);
 
  354        list<string> getRenameSql(
string table_name, 
string new_name);
 
  427                "autoincrement": True,
 
  444                "current_date": True,
 
  445                "current_time": True,
 
  446                "current_timestamp": True,
 
  500                "materialized": True,
 
  584         list<string> featuresImpl();
 
  588        string getSchemaName();
 
  592         AbstractSequence makeSequenceImpl(
string name, number start = 1, number increment = 1, *softnumber end, *hash<auto> 
opts);
 
  597         *AbstractSequence getSequenceImpl(
string name);
 
  602         *AbstractView getViewImpl(
string name);
 
  607         AbstractFunction makeFunctionImpl(
string name, 
string src, *hash<auto> 
opts);
 
  612         AbstractFunction makeProcedureImpl(
string name, 
string src, *hash<auto> 
opts);
 
  617         *AbstractFunction getFunctionImpl(
string name);
 
  622         *AbstractFunction getProcedureImpl(
string name);
 
  627         list<string> getDropSchemaSqlImpl(hash<auto> schema_hash, *hash<auto> opt);
 
  632         list<string> getAlignSqlImpl(hash schema_hash, *hash<auto> opt);
 
  663         list<string> listSequencesImpl();
 
  668         list<string> listViewsImpl();
 
  673         string getCreateSqlImpl(list<auto> 
l);
 
  677          static string getCreateSql(list<auto> 
l);
 
  749                    "qore": Type::String,
 
  752                    "qore": Type::String,
 
  755                    "qore": Type::Binary,
 
  781         bool checkExistenceImpl();
 
  786         Columns describeImpl();
 
  791         *
string getCreatePrimaryKeySqlUnlocked(*hash<auto> opt, 
bool cache = True);
 
  801         Indexes getIndexesImpl();
 
  806         ForeignConstraints getForeignConstraintsImpl(*hash<auto> 
opts);
 
  811         Constraints getConstraintsImpl();
 
  816         Triggers getTriggersImpl();
 
  820        string getCreateTableSqlImpl(*hash<auto> opt);
 
  828         *list getCreateMiscSqlImpl(*hash<auto> opt, 
bool cache);
 
  833         *list getAlignSqlImpl(AbstractTable table, *hash<auto> opt);
 
  838         string getCreateSqlImpl(list 
l);
 
  843         string getRenameSqlImpl(
string new_name);
 
  848         AbstractColumn addColumnImpl(
string cname, hash<auto> opt, 
bool nullable = True);
 
  853         setPrimaryKeyUnlocked(AbstractPrimaryKey pk);
 
  858         addColumnToTableUnlocked(AbstractColumn c);
 
  863         AbstractPrimaryKey addPrimaryKeyImpl(
string cname, hash<auto> ch, *hash<auto> opt);
 
  868         AbstractIndex addIndexImpl(
string iname, 
bool enabled, hash<auto> ch, *hash<auto> opt);
 
  873         AbstractForeignConstraint addForeignConstraintImpl(
string cname, hash<auto> ch, 
string table, hash<auto> tch, *hash<auto> opt);
 
  878         AbstractCheckConstraint addCheckConstraintImpl(
string cname, 
string src, *hash<auto> opt);
 
  883         AbstractUniqueConstraint addUniqueConstraintImpl(
string cname, hash<auto> ch, *hash<auto> opt);
 
  888         AbstractTrigger addTriggerImpl(
string tname, 
string src, *hash<auto> opt);
 
  893         bool tryInsertImpl(
string sql, hash<auto> row);
 
  906         hash<auto> getQoreTypeMapImpl();
 
  911         hash<auto> getTypeMapImpl();
 
  957         preSetupTableImpl(reference<hash> desc, *hash<auto> opt);
 
  962         setupTableImpl(hash<auto> desc, *hash<auto> opt);
 
 1003         *hash<auto> doReturningImpl(hash<auto> opt, reference<string> sql, list<auto> args);
 
 1008         list<auto> getGroupOrderByListUnlocked(hash<QueryInfo> info, 
string key, list<auto> coll);
 
transient AbstractDatasource ds
 
cache(*hash< auto > opts)
 
represents a Sqlite3-specific column
Definition: Sqlite3SqlUtil.qm.dox.h:226
 
constructor()
empty constructor for subclasses
 
constructor(string name, string native_type, *string qore_type, bool nullable, *string default_value, bool auto_increment=False, bool primary_key=False)
Creates the column.
 
string getRenameSql(AbstractTable t, string new_name)
returns a string that can be used to rename the column
 
softlist< string > getAddColumnSql(AbstractTable t)
returns a list of sql strings that can be used to add the column to an existing table
 
bool equalImpl(AbstractColumn c)
returns True if the argument is equal to the current object, False if not
 
softlist< string > getModifySqlImpl(AbstractTable t, AbstractColumn col, *hash< auto > opt)
returns a list of sql strings that can be used to modify the column to the new definition
 
string getDdlName(string name)
returns the column name with quoting in case the column name is a reserved word
 
provides the Sqlite3-specific implementation of the AbstractDatabase interface
Definition: Sqlite3SqlUtil.qm.dox.h:410
 
list< string > listFunctionsImpl()
returns a list of string function names in the database
 
bool supportsTypesImpl()
returns True if the database supports named types
 
const Sqlite3ReservedWords
hash of reserved words
Definition: Sqlite3SqlUtil.qm.dox.h:414
 
softint getCurrentSequenceValueImpl(string name)
returns the last value issued for the given sequence in the current session
 
list< string > listProceduresImpl()
returns a list of string procedure names in the database
 
bool rebuildIndexImpl(string name, *hash< auto > options)
rebuild index implementation. See SqlUtil::AbstractDatabase::rebuildIndex()
 
bool supportsPackagesImpl()
returns True if the database supports packages
 
computeStatisticsImpl(*hash< auto > options)
compute statistics implementation. See SqlUtil::AbstractDatabase::computeStatistics()
 
bool supportsSequencesImpl()
returns True since we have a workaround implementation for sequences in Sqlite3
 
int getPhysicalSizeImpl()
SqlUtil::AbstractDatabase::getPhysicalSize()
 
int getMaximumPrecision()
Returns the maximum precision for numeric or decimal columns.
 
list< string > listTablesImpl()
returns a list of string table names in the database
 
reclaimSpaceImpl(*hash< auto > options)
reclaim space implementation. See SqlUtil::AbstractDatabase::reclaimSpace()
 
softint getNextSequenceValueImpl(string name)
returns the next value in the given sequence
 
bool requiresScale()
Returns True if the driver requires a scale to support decimal values in numeric or decimal columns.
 
represents a Sqlite3-specific foreign constraint
Definition: Sqlite3SqlUtil.qm.dox.h:201
 
string getDropSql(string table_name)
returns a string that can be used to drop the foreign constraint from the database
 
softlist getRenameSql(string table_name, string new_name)
returns a string that drops the constraint and re-adds it, since Sqlite3 does not support renaming co...
 
represents a Sqlite3-specific index
Definition: Sqlite3SqlUtil.qm.dox.h:166
 
bool equalImpl(AbstractIndex ix)
returns True if the argument is equal to the current index, False if not
 
string getCreateSql(string table_name, *hash< auto > opt)
returns a string that can be used to create the index in the database
 
string getDropSql(string table_name)
returns a string that can be used to drop the index from the table
 
list< string > getColumnCollationList()
Returns a list of column name with COLLATE argument per column, if appropriate.
 
constructor(string name, bool unique, hash< auto > cols, *hash< string, string > collations)
creates the object from the arguments
 
string getRenameSql(string table_name, string new_name)
returns a string that can be used to rename the index in the database
 
represents a Sqlite3-specific primary key constraint
Definition: Sqlite3SqlUtil.qm.dox.h:342
 
bool supportsName()
returns False since primary key constraints in Sqlite3 have no name
 
Sqlite3 savepoint helper.
Definition: Sqlite3SqlUtil.qm.dox.h:139
 
createSavepointImpl()
Creates the savepoint.
 
rollbackImpl()
Rolls back to the savepoint.
 
deleteSavepointImpl()
Deletes the savepoint.
 
constructor(AbstractDatasource ds, *string savepoint)
Creates the object.
 
provides the Sqlite3-specific implementation of the AbstractTable interface
Definition: Sqlite3SqlUtil.qm.dox.h:735
 
bool isDuplicateRowErrorImpl(hash< ExceptionInfo > ex)
Returns True if the exception was raised because of a duplicate row / key error.
 
bool asteriskRequiresPrefix()
returns True if the database requires a wildcard "*" to be prefixed with the table name when it appea...
 
string getSqlName()
returns the name of the table to be used in SQL (with a possible qualifiers for schema,...
 
bool hasArrayBind()
returns False because the sqlite3 driver does not support array binds / bulk DML operations
 
bool constraintsLinkedToIndexesImpl()
returns True if the database links constraints to indexes (ie dropping the constraint drops the index...
 
doSelectOrderByWithOffsetSqlUnlockedImpl(reference< hash< QueryInfo > > info, reference< string > sql, list< auto > coll)
processes a string for use in SQL select statements when there is an "order by" and "offset" argument
 
bool hasReturningImpl()
returns True if the current database driver supports the "returning" clause in insert statements,...
 
static *string getSqlValue(auto v)
returns a string for use in SQL queries representing the DB-specific value of the argument
 
list< string > getColumnSqlNames(softlist< auto > cols)
returns a list of column names for use in SQL strings; subclasses can process the argument list in ca...
 
const QoreTypeMap
maps qore type names to Sqlite3 type names
Definition: Sqlite3SqlUtil.qm.dox.h:760
 
copyImpl(AbstractTable old)
db-specific copy actions
 
static *string getSqlValueIntern(auto v)
returns a string for use in SQL queries representing the DB-specific value of the argument; returns N...
 
*string getSqlValueImpl(auto v)
returns a string for use in SQL queries representing the DB-specific value of the argument; returns N...
 
hash getColumnOperatorMapImpl()
returns the column operator map for this object
 
string getColumnSqlName(string col)
returns the column name for use in SQL strings; subclasses can return a special string in case the co...
 
bool uniqueIndexCreatesConstraintImpl()
returns True if the database automatically creates a unique constraint when a unique index is created...
 
const Sqlite3CopMap
column operator specializations for Sqlite3
Definition: Sqlite3SqlUtil.qm.dox.h:764
 
const Sqlite3TypeMap
maps sqlite3 type names to type configurations
Definition: Sqlite3SqlUtil.qm.dox.h:739
 
doSelectLimitOnlyUnlockedImpl(reference< hash< QueryInfo > > info, reference< string > sql)
processes a string for use in SQL select statements when there is a "limit" argument,...
 
AbstractSavepointHelper getSavepointHelperImpl(*string savepoint)
get DB-specific savepoint helper
 
bool supportsTablespacesImpl()
returns True if the database support tablespaces
 
AbstractDataProviderType getNumericTypeImpl(string native_type, bool nullable, *hash< auto > options)
returns the type for number / numeric columns for the database so that data conversions can be handle...
 
represents a Sqlite3-specific trigger
Definition: Sqlite3SqlUtil.qm.dox.h:363
 
softlist getDropSql(string table_name)
returns a string that can be used to drop the trigger from the database
 
softlist getRenameSql(string table_name, string new_name)
returns a string that can be used to rename the trigger in the database
 
softlist getCreateSql(string table_name, *hash< auto > opt)
returns a string that can be used to create the trigger in the database
 
constructor(string n, string n_src)
creates the object and sets its name and the trigger source
 
bool equalImpl(AbstractFunctionBase t)
returns True if the argument is equal to the current object, False if not
 
represents a Sqlite3 view
Definition: Sqlite3SqlUtil.qm.dox.h:390
 
constructor(string name, string src)
creates the object from the arguments
 
softlist getRenameSql(string new_name, *hash< auto > opt)
returns a string that can be used to rename the view in the database
 
string getCreateSql(*hash< auto > opt)
returns a string that can be used to create the view in the database
 
the Sqlite3SqlUtil namespace contains all the objects in the Sqlite3SqlUtil module
Definition: Sqlite3SqlUtil.qm.dox.h:129
 
Sqlite3Table get_table(AbstractDatasource nds, string nname, *hash< auto > opts)
returns a Sqlite3Table object corresponding to the arguments
 
Sqlite3Database get_database(AbstractDatasource nds, *hash< auto > opts)
returns a Sqlite3Database object corresponding to the arguments