SQLite3 backends.
sqlite3 |
Classes
Sqlite3Dialect |
The dialect for SQLite3. |
asyncqlio.backends.sqlite3.
Sqlite3Dialect
[source]¶Bases: asyncqlio.backends.base.BaseDialect
The dialect for SQLite3.
has_checkpoints
¶Returns True if this dialect can use transaction checkpoints.
has_serial
¶Returns True if this dialect can use the SERIAL datatype.
lastval_method
¶The last value method for a dialect. For example, in PostgreSQL this is LASTVAL();
has_returns
¶Returns True if this dialect has RETURNS.
has_ilike
¶Returns True if this dialect has ILIKE.
has_default
¶Returns True if this dialect has DEFAULT.
has_truncate
¶Returns TRUE if this dialect has TRUNCATE.
has_cascade
¶Returns True if this dialect has DROP TABLE … CASCADE.
get_primary_key_index_name
(table_name)[source]¶Get the name a dialect gives to a table’s primary key index.
get_unique_column_index_name
(table_name, column_name)[source]¶Get the name a dialect gives to a unique column index.
Parameters: |
|
---|
get_column_sql
(table_name=None, *, emitter)[source]¶Get a query to find information on all columns, optionally limiting by table.
Parameters: |
|
---|
get_index_sql
(table_name=None, *, emitter)[source]¶Get a query to find information on all indexes, optionally limiting by table.
Parameters: |
|
---|
get_upsert_sql
(table_name, *, on_conflict_update=True)[source]¶Get a formattable query and a set of required params to execute upsert-like functionality.
Parameters: |
|
---|