Static NUMBER_Static columnGet the column default value as a string
default value
default value
data type
Static columnCreate the column definition SQL in the format: column_type[(max)] [NOT NULL] [PRIMARY KEY AUTOINCREMENT]
column definition SQL
user column
Static columnSQLCreate the column SQL in the format: "column_name" column_type[(max)] [NOT NULL] [PRIMARY KEY AUTOINCREMENT]
column SQL
user column
Static countCount for query
number the count of rows
connection
table
where clause
where arguments
Static countAttempt to count the results of the query
count if known, -1 if not able to determine
connection
SQL statement
selection arguments
Static createCreate a new name by replacing a case insensitive value with a new value. If no replacement is done, create a new name in the form name_#, where # is either 2 or one greater than an existing name number suffix. When a db connection is provided, check for conflicting SQLite Master names and increment # until an available name is found.
new name
optional connection, used for SQLite Master name conflict detection
current name
value to replace
replacement value
Static createCreate the user defined table SQL
create table SQL
user table
Static deleteExecute a deletion
deleted count
connection
table name
where clause
where arguments
Static dropDrop the table if it exists
connection
table name
Static dropStatic dropDrop the view if it exists
connection
view name
Static dropStatic execSQLExecute the SQL
connection
sql statement
Static foreignPerform a foreign key check
empty list if valid or violation errors, 4 column values for each violation. see SQLite PRAGMA foreign_key_check
connection
Static foreignPerform a foreign key check
empty list if valid or violation errors, 4 column values for each violation. see SQLite PRAGMA foreign_key_check
connection
table name
Static foreignStatic foreignQuery for the foreign keys value
true if enabled, false if disabled
connection
Static foreignStatic insertInsert a new row
row id or -1 on an exception
connection
table name
content values
Static insertInsert a new row
row id
connection
table name
content values
Static integrityStatic modifySQLModify the SQL with a name change and the table mapping modifications
updated SQL, null if SQL contains a deleted column
optional connection, used for SQLite Master name conflict detection
statement name
SQL statement
table mapping
Static modifySQLWithModify the SQL with table mapping modifications
updated SQL, null if SQL contains a deleted column
SQL statement
table mapping
Static queryQuery for results
result set
connection
sql statement
selection arguments
Static queryQuery for values up to the limit
results
connection
sql statement
arguments
result row limit
Static queryQuery the SQL for a single result object with the expected data type
result, null if no result
connection
sql statement
arguments
column name
Static queryQuery the SQL for a single result object with the expected data type
result, null if no result
connection
sql statement
arguments
column index
Static quickStatic quoteStatic replaceReplace the name (table, column, etc) in the SQL with the replacement. The name must be surrounded by non word characters (i.e. not a subset of another name).
null if not modified, SQL value if replaced at least once
SQL statement
name
replacement value
Static setChange the foreign keys state
previous foreign keys value
connection
true to turn on, false to turn off
Static tempGet an available temporary table name. Starts with prefix_baseName and then continues with prefix#_baseName starting at 1 and increasing.
unused table name
connection
name prefix
base name
Static transferTransfer table content to itself with new rows containing a new column value. All rows containing the current column value are inserted as new rows with the new column value.
connection
table name
column name
new column value for new rows
column value for rows to insert as new rows
Optional idColumnName: stringid column name
Static transferTransfer table content from one table to another
connection
table mapping
Static transferCreate insert SQL to transfer table content from one table to another
transfer SQL
table mapping
Static updateUpdate table rows
updated count
connection
table name
content values
where clause
where arguments
Static vacuumRebuild the GeoPackage, repacking it into a minimal amount of disk space
connection
Static wrapPerform the query and wrap as a result
result
connection
sql statement
selection arguments
Generated using TypeDoc
Pattern for matching numbers