class DefaultDialect(interfaces.Dialect):
Known subclasses: sqlalchemy.databases.firebird.FBDialect
, sqlalchemy.databases.mssql.MSDialect
, sqlalchemy.databases.mysql.MySQLDialect
, sqlalchemy.databases.oracle.OracleDialect
, sqlalchemy.databases.postgresql.PGDialect
, sqlalchemy.databases.sqlite.SQLiteDialect
, sqlalchemy.databases.sybase.SybaseDialect
, sqlalchemy.engine.default.StrCompileDialect
Class Method | get_pool_class |
Undocumented |
Class Method | load_provisioning |
set up the provision.py module for this dialect. |
Method | connect |
Establish a connection using this dialect's DBAPI. |
Method | create_connect_args |
Build DB-API compatible connection arguments. |
Method | create_xid |
Create a random two-phase transaction ID. |
Method | denormalize_name |
convert the given name to a case insensitive identifier for the backend if it is an all-lowercase name. |
Method | do_begin |
Provide an implementation of connection.begin(), given a DB-API connection. |
Method | do_close |
Provide an implementation of connection.close(), given a DBAPI connection. |
Method | do_commit |
Provide an implementation of connection.commit(), given a DB-API connection. |
Method | do_execute |
Provide an implementation of cursor.execute(statement, parameters). |
Method | do_execute_no_params |
Provide an implementation of cursor.execute(statement). |
Method | do_executemany |
Provide an implementation of cursor.executemany(statement, parameters). |
Method | do_release_savepoint |
Release the named savepoint on a connection. |
Method | do_rollback |
Provide an implementation of connection.rollback(), given a DB-API connection. |
Method | do_rollback_to_savepoint |
Rollback a connection to the named savepoint. |
Method | do_savepoint |
Create a savepoint with the given name. |
Method | get_default_isolation_level |
Given a DBAPI connection, return its isolation level, or a default isolation level if one cannot be retrieved. |
Method | get_driver_connection |
Returns the connection object as returned by the external driver package. |
Method | has_index |
Check the existence of a particular index name in the database. |
Method | initialize |
Called during strategized creation of the dialect with a connection. |
Method | is_disconnect |
Return True if the given DB-API error indicates an invalid connection |
Method | normalize_name |
convert the given name to lowercase if it is detected as case insensitive. |
Method | on_connect |
return a callable which sets up a newly created DBAPI connection. |
Method | reset_isolation_level |
Given a DBAPI connection, revert its isolation to the default. |
Method | type_descriptor |
Provide a database-specific .TypeEngine object, given the generic object which comes from the types module. |
Class Variable | construct_arguments |
Optional set of argument specifiers for various SQLAlchemy constructs, typically schema items. |
Class Variable | dbapi_exception_translation_map |
mapping used in the extremely unusual case that a DBAPI's published exceptions don't actually have the __name__ that they are linked towards. |
Class Variable | supports_default_metavalue |
dialect supports INSERT... VALUES (DEFAULT) syntax |
Class Variable | supports_default_values |
dialect supports INSERT... DEFAULT VALUES syntax |
Class Variable | supports_empty_insert |
dialect supports INSERT () VALUES () |
Instance Variable | returns_unicode_strings |
Undocumented |
Instance Variable | type_compiler |
Undocumented |
Method | __init__ |
Undocumented |
Method | _check_max_identifier_length |
Perform a connection / server version specific check to determine the max_identifier_length. |
Method | _check_unicode_description |
Undocumented |
Method | _check_unicode_returns |
Undocumented |
Method | _ensure_has_table_connection |
Undocumented |
Method | _reset_characteristics |
Undocumented |
Method | _set_connection_characteristics |
Undocumented |
Method | do_ping |
Undocumented |
Method | get_dialect_pool_class |
Undocumented |
Method | set_connection_execution_options |
Undocumented |
Method | set_engine_execution_options |
Undocumented |
Method | validate_identifier |
Undocumented |
Class Variable | colspecs |
Undocumented |
Class Variable | connection_characteristics |
Undocumented |
Class Variable | cte_follows_insert |
Undocumented |
Class Variable | default_paramstyle |
Undocumented |
Class Variable | default_sequence_base |
Undocumented |
Class Variable | engine_config_types |
Undocumented |
Class Variable | full_returning |
Undocumented |
Class Variable | inline_comments |
Undocumented |
Class Variable | insert_executemany_returning |
Undocumented |
Class Variable | is_async |
Undocumented |
Class Variable | isolation_level |
Undocumented |
Class Variable | max_constraint_name_length |
Undocumented |
Class Variable | max_index_name_length |
Undocumented |
Class Variable | name |
Undocumented |
Class Variable | non_native_boolean_check_constraint |
Undocumented |
Class Variable | postfetch_lastrowid |
Undocumented |
Class Variable | preexecute_autoincrement_sequences |
Undocumented |
Class Variable | reflection_options |
Undocumented |
Class Variable | requires_name_normalize |
Undocumented |
Class Variable | sequences_optional |
Undocumented |
Class Variable | server_side_cursors |
Undocumented |
Class Variable | supports_alter |
Undocumented |
Class Variable | supports_comments |
Undocumented |
Class Variable | supports_for_update_of |
Undocumented |
Class Variable | supports_identity_columns |
Undocumented |
Class Variable | supports_is_distinct_from |
Undocumented |
Class Variable | supports_multivalues_insert |
Undocumented |
Class Variable | supports_native_decimal |
Undocumented |
Class Variable | supports_native_enum |
Undocumented |
Class Variable | supports_sane_multi_rowcount |
Undocumented |
Class Variable | supports_sane_rowcount |
Undocumented |
Class Variable | supports_schemas |
Undocumented |
Class Variable | supports_sequences |
Undocumented |
Class Variable | supports_server_side_cursors |
Undocumented |
Class Variable | supports_simple_order_by_label |
Undocumented |
Class Variable | supports_statement_cache |
indicates if this dialect supports caching. |
Class Variable | supports_unicode_binds |
Undocumented |
Class Variable | supports_unicode_statements |
Undocumented |
Class Variable | supports_views |
Undocumented |
Class Variable | tuple_in_values |
Undocumented |
Class Variable | use_setinputsizes |
Undocumented |
Instance Variable | _decoder |
Undocumented |
Instance Variable | _description_decoder |
Undocumented |
Instance Variable | _encoder |
Undocumented |
Instance Variable | _ischema |
Undocumented |
Instance Variable | _user_defined_max_identifier_length |
Undocumented |
Instance Variable | case_sensitive |
Undocumented |
Instance Variable | compiler_linting |
Undocumented |
Instance Variable | convert_unicode |
Undocumented |
Instance Variable | dbapi |
Undocumented |
Instance Variable | default_isolation_level |
Undocumented |
Instance Variable | default_schema_name |
Undocumented |
Instance Variable | description_encoding |
Undocumented |
Instance Variable | encoding |
Undocumented |
Instance Variable | identifier_preparer |
Undocumented |
Instance Variable | implicit_returning |
Undocumented |
Instance Variable | label_length |
Undocumented |
Instance Variable | max_identifier_length |
Undocumented |
Instance Variable | paramstyle |
Undocumented |
Instance Variable | positional |
Undocumented |
Instance Variable | server_version_info |
Undocumented |
Instance Variable | supports_native_boolean |
Undocumented |
Property | _dialect_specific_select_one |
Undocumented |
Property | _supports_statement_cache |
Undocumented |
Property | _type_memos |
Undocumented |
Property | dialect_description |
Undocumented |
Property | supports_sane_rowcount_returning |
True if this dialect supports sane rowcount even if RETURNING is in use. |
Inherited from Dialect
:
Class Method | engine_created |
A convenience hook called before returning the final _engine.Engine . |
Class Method | get_dialect_cls |
Given a URL, return the .Dialect that will be used. |
Method | _get_default_schema_name |
Return the string name of the currently selected schema from the given connection. |
Method | _get_server_version_info |
Retrieve the server version info from the given connection. |
Method | do_begin_twophase |
Begin a two phase transaction on the given connection. |
Method | do_commit_twophase |
Commit a two phase transaction on the given connection. |
Method | do_prepare_twophase |
Prepare a two phase transaction on the given connection. |
Method | do_recover_twophase |
Recover list of uncommitted prepared two phase transaction identifiers on the given connection. |
Method | do_rollback_twophase |
Rollback a two phase transaction on the given connection. |
Method | do_set_input_sizes |
invoke the cursor.setinputsizes() method with appropriate arguments |
Method | get_check_constraints |
Return information about check constraints in table_name . |
Method | get_columns |
Return information about columns in table_name . |
Method | get_foreign_keys |
Return information about foreign_keys in table_name . |
Method | get_indexes |
Return information about indexes in table_name . |
Method | get_isolation_level |
Given a DBAPI connection, return its isolation level. |
Method | get_pk_constraint |
Return information about the primary key constraint on table_name`. |
Method | get_sequence_names |
Return a list of all sequence names available in the database. |
Method | get_table_comment |
Return the "comment" for the table identified by table_name . |
Method | get_table_names |
Return a list of table names for schema . |
Method | get_temp_table_names |
Return a list of temporary table names on the given connection, if supported by the underlying backend. |
Method | get_temp_view_names |
Return a list of temporary view names on the given connection, if supported by the underlying backend. |
Method | get_unique_constraints |
Return information about unique constraints in table_name . |
Method | get_view_definition |
Return view definition. |
Method | get_view_names |
Return a list of all view names available in the database. |
Method | has_sequence |
Check the existence of a particular sequence in the database. |
Method | has_table |
For internal dialect use, check the existence of a particular table in the database. |
Method | on_connect_url |
return a callable which sets up a newly created DBAPI connection. |
Method | set_isolation_level |
Given a DBAPI connection, set its isolation level. |
Class Variable | _has_events |
Undocumented |
set up the provision.py module for this dialect.
For dialects that include a provision.py module that sets up provisioning followers, this method should initiate that process.
A typical implementation would be:
@classmethod def load_provisioning(cls): __import__("mydialect.provision")
The default method assumes a module named provision.py inside the owning package of the current dialect, based on the __module__ attribute:
@classmethod def load_provisioning(cls): package = ".".join(cls.__module__.split(".")[0:-1]) try: __import__(package + ".provision") except ImportError: pass
Establish a connection using this dialect's DBAPI.
The default implementation of this method is:
def connect(self, *cargs, **cparams): return self.dbapi.connect(*cargs, **cparams)
The *cargs, **cparams parameters are generated directly
from this dialect's .Dialect.create_connect_args
method.
This method may be used for dialects that need to perform programmatic per-connection steps when a new connection is procured from the DBAPI.
See Also
.Dialect.create_connect_args
.Dialect.on_connect
Parameters | |
*cargs | positional parameters returned from the
.Dialect.create_connect_args method |
**cparams | keyword parameters returned from the
.Dialect.create_connect_args method. |
Returns | |
a DBAPI connection, typically from the PEP 249 module level .connect() function. |
sqlalchemy.dialects.firebird.kinterbasdb.FBDialect_kinterbasdb
, sqlalchemy.dialects.mssql.pymssql.MSDialect_pymssql
, sqlalchemy.dialects.mysql.mariadbconnector.MySQLDialect_mariadbconnector
, sqlalchemy.dialects.mysql.mysqlconnector.MySQLDialect_mysqlconnector
, sqlalchemy.dialects.mysql.mysqldb.MySQLDialect_mysqldb
, sqlalchemy.dialects.mysql.oursql.MySQLDialect_oursql
, sqlalchemy.dialects.oracle.cx_oracle.OracleDialect_cx_oracle
, sqlalchemy.dialects.postgresql.asyncpg.PGDialect_asyncpg
, sqlalchemy.dialects.postgresql.pg8000.PGDialect_pg8000
, sqlalchemy.dialects.postgresql.psycopg2.PGDialect_psycopg2
, sqlalchemy.dialects.postgresql.pygresql.PGDialect_pygresql
, sqlalchemy.dialects.postgresql.pypostgresql.PGDialect_pypostgresql
, sqlalchemy.dialects.sqlite.pysqlite.SQLiteDialect_pysqlite
, sqlalchemy.dialects.sybase.pysybase.SybaseDialect_pysybase
Build DB-API compatible connection arguments.
Given a .URL
object, returns a tuple
consisting of a (*args, **kwargs) suitable to send directly
to the dbapi's connect function. The arguments are sent to the
.Dialect.connect
method which then runs the DBAPI-level
connect() function.
The method typically makes use of the
.URL.translate_connect_args
method in order to generate a dictionary of options.
The default implementation is:
def create_connect_args(self, url): opts = url.translate_connect_args() opts.update(url.query) return [[], opts]
See Also
.URL.translate_connect_args
Parameters | |
url | a .URL object |
Returns | |
a tuple of (*args, **kwargs) which will be passed to the
.Dialect.connect method. |
Create a random two-phase transaction ID.
This id will be passed to do_begin_twophase(), do_rollback_twophase(), do_commit_twophase(). Its format is unspecified.
convert the given name to a case insensitive identifier for the backend if it is an all-lowercase name.
This method is only used if the dialect defines requires_name_normalize=True.
sqlalchemy.dialects.mysql.oursql.MySQLDialect_oursql
Provide an implementation of connection.begin(), given a DB-API connection.
The DBAPI has no dedicated "begin" method and it is expected that transactions are implicit. This hook is provided for those DBAPIs that might need additional help in this area.
Note that .Dialect.do_begin
is not called unless a
.Transaction
object is in use. The
.Dialect.do_autocommit
hook is provided for DBAPIs that need some extra commands emitted
after a commit in order to enter the next transaction, when the
SQLAlchemy _engine.Connection
is used in its default "autocommit"
mode.
Parameters | |
dbapi_connection | a DBAPI connection, typically
proxied within a .ConnectionFairy . |
Provide an implementation of connection.close(), given a DBAPI connection.
This hook is called by the _pool.Pool
when a connection has been
detached from the pool, or is being returned beyond the normal
capacity of the pool.
Parameters | |
dbapi_connection | a DBAPI connection, typically
proxied within a .ConnectionFairy . |
sqlalchemy.dialects.firebird.kinterbasdb.FBDialect_kinterbasdb
, sqlalchemy.dialects.mysql.oursql.MySQLDialect_oursql
Provide an implementation of cursor.execute(statement).
The parameter collection should not be sent.
sqlalchemy.dialects.mssql.pyodbc.MSDialect_pyodbc
, sqlalchemy.dialects.mysql.mysqldb.MySQLDialect_mysqldb
, sqlalchemy.dialects.oracle.cx_oracle.OracleDialect_cx_oracle
, sqlalchemy.dialects.postgresql.psycopg2.PGDialect_psycopg2
, sqlalchemy.dialects.sybase.pysybase.SybaseDialect_pysybase
Parameters | |
connection | a _engine.Connection . |
name | savepoint name. |
Parameters | |
dbapi_connection | a DBAPI connection, typically
proxied within a .ConnectionFairy . |
Parameters | |
connection | a _engine.Connection . |
name | savepoint name. |
sqlalchemy.databases.mssql.MSDialect
Parameters | |
connection | a _engine.Connection . |
name | savepoint name. |
sqlalchemy.databases.oracle.OracleDialect
Given a DBAPI connection, return its isolation level, or a default isolation level if one cannot be retrieved.
May be overridden by subclasses in order to provide a "fallback" isolation level for databases that cannot reliably retrieve the actual isolation level.
By default, calls the _engine.Interfaces.get_isolation_level
method, propagating any exceptions raised.
sqlalchemy.dialects.mysql.aiomysql.MySQLDialect_aiomysql
, sqlalchemy.dialects.mysql.asyncmy.MySQLDialect_asyncmy
, sqlalchemy.dialects.postgresql.asyncpg.PGDialect_asyncpg
, sqlalchemy.dialects.sqlite.aiosqlite.SQLiteDialect_aiosqlite
Returns the connection object as returned by the external driver package.
For normal dialects that use a DBAPI compliant driver this call will just return the connection passed as argument. For dialects that instead adapt a non DBAPI compliant driver, like when adapting an asyncio driver, this call will return the connection-like object as returned by the driver.
Check the existence of a particular index name in the database.
Given a _engine.Connection
object, a string
table_name
and string index name, return True if an index of the
given name on the given table exists, false otherwise.
The .DefaultDialect
implements this in terms of the
.Dialect.has_table
and .Dialect.get_indexes
methods,
however dialects can implement a more performant version.
sqlalchemy.databases.firebird.FBDialect
, sqlalchemy.databases.mssql.MSDialect
, sqlalchemy.databases.mysql.MySQLDialect
, sqlalchemy.databases.oracle.OracleDialect
, sqlalchemy.databases.postgresql.PGDialect
, sqlalchemy.databases.sybase.SybaseDialect
Called during strategized creation of the dialect with a connection.
Allows dialects to configure options based on server version info or other properties.
The connection passed here is a SQLAlchemy Connection object, with full capabilities.
The initialize() method of the base dialect should be called via super().
Note
as of SQLAlchemy 1.4, this method is called before
any _engine.Dialect.on_connect
hooks are called.
sqlalchemy.databases.mysql.MySQLDialect
, sqlalchemy.dialects.firebird.kinterbasdb.FBDialect_kinterbasdb
, sqlalchemy.dialects.mssql.pymssql.MSDialect_pymssql
, sqlalchemy.dialects.mssql.pyodbc.MSDialect_pyodbc
, sqlalchemy.dialects.oracle.cx_oracle.OracleDialect_cx_oracle
, sqlalchemy.dialects.postgresql.asyncpg.PGDialect_asyncpg
, sqlalchemy.dialects.postgresql.pg8000.PGDialect_pg8000
, sqlalchemy.dialects.postgresql.psycopg2.PGDialect_psycopg2
, sqlalchemy.dialects.postgresql.pygresql.PGDialect_pygresql
, sqlalchemy.dialects.postgresql.pypostgresql.PGDialect_pypostgresql
, sqlalchemy.dialects.sqlite.pysqlite.SQLiteDialect_pysqlite
, sqlalchemy.dialects.sybase.pysybase.SybaseDialect_pysybase
convert the given name to lowercase if it is detected as case insensitive.
This method is only used if the dialect defines requires_name_normalize=True.
sqlalchemy.databases.mssql.MSDialect
, sqlalchemy.databases.mysql.MySQLDialect
, sqlalchemy.databases.postgresql.PGDialect
, sqlalchemy.databases.sqlite.SQLiteDialect
, sqlalchemy.dialects.oracle.cx_oracle.OracleDialect_cx_oracle
return a callable which sets up a newly created DBAPI connection.
The callable should accept a single argument "conn" which is the DBAPI connection itself. The inner callable has no return value.
E.g.:
class MyDialect(default.DefaultDialect): # ... def on_connect(self): def do_on_connect(connection): connection.execute("SET SPECIAL FLAGS etc") return do_on_connect
This is used to set dialect-wide per-connection options such as isolation modes, Unicode modes, etc.
The "do_on_connect" callable is invoked by using the
_events.PoolEvents.connect
event
hook, then unwrapping the DBAPI connection and passing it into the
callable.
_engine.Dialect.initialize
method however.If None is returned, no event listener is generated.
See Also
.Dialect.connect
- allows the DBAPI connect() sequence
itself to be controlled.
.Dialect.on_connect_url
- supersedes
.Dialect.on_connect
to also receive the
_engine.URL
object in context.
Returns | |
a callable that accepts a single DBAPI connection as an argument, or None. |
Given a DBAPI connection, revert its isolation to the default.
Note that this is a dialect-level method which is used as part
of the implementation of the _engine.Connection
and
_engine.Engine
isolation level facilities; these APIs should be preferred for
most typical use cases.
See Also
_engine.Connection.get_isolation_level
- view current level
_engine.Connection.default_isolation_level
- view default level
:paramref:`.Connection.execution_options.isolation_level` -
set per _engine.Connection
isolation level
:paramref:`_sa.create_engine.isolation_level` -
set per _engine.Engine
isolation level
Provide a database-specific .TypeEngine
object, given
the generic object which comes from the types module.
This method looks for a dictionary called
colspecs as a class or instance-level variable,
and passes on to _types.adapt_type
.
sqlalchemy.databases.firebird.FBDialect
, sqlalchemy.databases.mssql.MSDialect
, sqlalchemy.databases.mysql.MySQLDialect
, sqlalchemy.databases.oracle.OracleDialect
, sqlalchemy.databases.postgresql.PGDialect
, sqlalchemy.databases.sqlite.SQLiteDialect
, sqlalchemy.databases.sybase.SybaseDialect
Optional set of argument specifiers for various SQLAlchemy constructs, typically schema items.
To implement, establish as a series of tuples, as in:
construct_arguments = [ (schema.Index, { "using": False, "where": None, "ops": None }) ]
If the above construct is established on the PostgreSQL dialect,
the .Index
construct will now accept the keyword arguments
postgresql_using, postgresql_where, nad postgresql_ops.
Any other argument specified to the constructor of .Index
which is prefixed with postgresql_ will raise .ArgumentError
.
A dialect which does not include a construct_arguments member will not participate in the argument validation system. For such a dialect, any argument name is accepted by all participating constructs, within the namespace of arguments prefixed with that dialect name. The rationale here is so that third-party dialects that haven't yet implemented this feature continue to function in the old way.
See Also
.DialectKWArgs
- implementing base class which consumes
.DefaultDialect.construct_arguments
mapping used in the extremely unusual case that a DBAPI's published exceptions don't actually have the __name__ that they are linked towards.
bool
=
sqlalchemy.databases.mysql.MySQLDialect
, sqlalchemy.databases.oracle.OracleDialect
, sqlalchemy.databases.postgresql.PGDialect
, sqlalchemy.databases.sqlite.SQLiteDialect
bool
=
sqlalchemy.databases.firebird.FBDialect
, sqlalchemy.databases.mssql.MSDialect
, sqlalchemy.databases.mysql.MySQLDialect
, sqlalchemy.databases.oracle.OracleDialect
, sqlalchemy.databases.postgresql.PGDialect
, sqlalchemy.databases.sqlite.SQLiteDialect
bool
=
sqlalchemy.databases.firebird.FBDialect
, sqlalchemy.databases.mssql.MSDialect
, sqlalchemy.databases.oracle.OracleDialect
, sqlalchemy.databases.postgresql.PGDialect
, sqlalchemy.databases.sqlite.SQLiteDialect
sqlalchemy.databases.firebird.FBDialect
, sqlalchemy.databases.mssql.MSDialect
, sqlalchemy.databases.mysql.MySQLDialect
, sqlalchemy.databases.oracle.OracleDialect
, sqlalchemy.databases.postgresql.PGDialect
, sqlalchemy.databases.sqlite.SQLiteDialect
, sqlalchemy.databases.sybase.SybaseDialect
Undocumented
sqlalchemy.databases.oracle.OracleDialect
Perform a connection / server version specific check to determine the max_identifier_length.
If the dialect's class level max_identifier_length should be used, can return None.
sqlalchemy.databases.oracle.OracleDialect
, sqlalchemy.dialects.mysql.mysqldb.MySQLDialect_mysqldb
Undocumented
dict
=
sqlalchemy.databases.firebird.FBDialect
, sqlalchemy.databases.mssql.MSDialect
, sqlalchemy.databases.oracle.OracleDialect
, sqlalchemy.databases.postgresql.PGDialect
, sqlalchemy.databases.sybase.SybaseDialect
, sqlalchemy.dialects.mysql.cymysql.MySQLDialect_cymysql
, sqlalchemy.dialects.mysql.mysqlconnector.MySQLDialect_mysqlconnector
, sqlalchemy.dialects.mysql.oursql.MySQLDialect_oursql
, sqlalchemy.dialects.mysql.pyodbc.MySQLDialect_pyodbc
, sqlalchemy.dialects.sqlite.pysqlite.SQLiteDialect_pysqlite
, sqlalchemy.engine.default.StrCompileDialect
Undocumented
sqlalchemy.databases.mssql.MSDialect
, sqlalchemy.dialects.postgresql.psycopg2.PGDialect_psycopg2
Undocumented
str
=
sqlalchemy.databases.firebird.FBDialect
, sqlalchemy.databases.mssql.MSDialect
, sqlalchemy.databases.mysql.MySQLDialect
, sqlalchemy.databases.oracle.OracleDialect
, sqlalchemy.databases.postgresql.PGDialect
, sqlalchemy.databases.sqlite.SQLiteDialect
, sqlalchemy.databases.sybase.SybaseDialect
Undocumented
bool
=
sqlalchemy.databases.mssql.MSDialect
Undocumented
bool
=
sqlalchemy.databases.postgresql.PGDialect
, sqlalchemy.engine.default.StrCompileDialect
Undocumented
bool
=
sqlalchemy.databases.mysql.MySQLDialect
, sqlalchemy.databases.oracle.OracleDialect
, sqlalchemy.databases.postgresql.PGDialect
Undocumented
bool
=
sqlalchemy.dialects.firebird.kinterbasdb.FBDialect_kinterbasdb
, sqlalchemy.dialects.mssql.pymssql.MSDialect_pymssql
, sqlalchemy.dialects.mysql.mariadbconnector.MySQLDialect_mariadbconnector
, sqlalchemy.dialects.mysql.mysqlconnector.MySQLDialect_mysqlconnector
, sqlalchemy.dialects.mysql.mysqldb.MySQLDialect_mysqldb
, sqlalchemy.dialects.mysql.oursql.MySQLDialect_oursql
Undocumented
bool
=
sqlalchemy.databases.mysql.MySQLDialect
, sqlalchemy.databases.sybase.SybaseDialect
, sqlalchemy.dialects.firebird.kinterbasdb.FBDialect_kinterbasdb
, sqlalchemy.dialects.oracle.cx_oracle.OracleDialect_cx_oracle
, sqlalchemy.dialects.postgresql.asyncpg.PGDialect_asyncpg
, sqlalchemy.dialects.postgresql.pg8000.PGDialect_pg8000
, sqlalchemy.dialects.postgresql.psycopg2.PGDialect_psycopg2
, sqlalchemy.dialects.postgresql.pypostgresql.PGDialect_pypostgresql
Undocumented
bool
=
sqlalchemy.dialects.mysql.mariadbconnector.MySQLDialect_mariadbconnector
, sqlalchemy.dialects.mysql.mysqldb.MySQLDialect_mysqldb
, sqlalchemy.dialects.postgresql.asyncpg.PGDialect_asyncpg
, sqlalchemy.dialects.postgresql.pg8000.PGDialect_pg8000
, sqlalchemy.dialects.postgresql.psycopg2.PGDialect_psycopg2
, sqlalchemy.dialects.sqlite.aiosqlite.SQLiteDialect_aiosqlite
Undocumented
bool
=
sqlalchemy.databases.oracle.OracleDialect
, sqlalchemy.engine.default.StrCompileDialect
Undocumented
bool
=
sqlalchemy.databases.firebird.FBDialect
, sqlalchemy.databases.mssql.MSDialect
, sqlalchemy.databases.mysql.MySQLDialect
, sqlalchemy.databases.oracle.OracleDialect
, sqlalchemy.databases.postgresql.PGDialect
, sqlalchemy.databases.sqlite.SQLiteDialect
, sqlalchemy.databases.sybase.SybaseDialect
, sqlalchemy.engine.default.StrCompileDialect
indicates if this dialect supports caching.
All dialects that are compatible with statement caching should set this flag to True directly on each dialect class and subclass that supports it. SQLAlchemy tests that this flag is locally present on each dialect subclass before it will use statement caching. This is to provide safety for legacy or new dialects that are not yet fully tested to be compliant with SQL statement caching.
See Also
bool
=
sqlalchemy.databases.mssql.MSDialect
, sqlalchemy.databases.oracle.OracleDialect
, sqlalchemy.databases.sqlite.SQLiteDialect
, sqlalchemy.databases.sybase.SybaseDialect
, sqlalchemy.dialects.mysql.mysqlconnector.MySQLDialect_mysqlconnector
, sqlalchemy.dialects.mysql.oursql.MySQLDialect_oursql
, sqlalchemy.dialects.mysql.pymysql.MySQLDialect_pymysql
, sqlalchemy.dialects.postgresql.asyncpg.PGDialect_asyncpg
, sqlalchemy.dialects.postgresql.pg8000.PGDialect_pg8000
, sqlalchemy.dialects.postgresql.psycopg2.PGDialect_psycopg2
, sqlalchemy.dialects.postgresql.pypostgresql.PGDialect_pypostgresql
Undocumented
bool
=
sqlalchemy.databases.oracle.OracleDialect
, sqlalchemy.databases.sqlite.SQLiteDialect
, sqlalchemy.databases.sybase.SybaseDialect
, sqlalchemy.dialects.mysql.mariadbconnector.MySQLDialect_mariadbconnector
, sqlalchemy.dialects.mysql.mysqlconnector.MySQLDialect_mysqlconnector
, sqlalchemy.dialects.mysql.mysqldb.MySQLDialect_mysqldb
, sqlalchemy.dialects.mysql.oursql.MySQLDialect_oursql
, sqlalchemy.dialects.mysql.pyodbc.MySQLDialect_pyodbc
, sqlalchemy.dialects.postgresql.asyncpg.PGDialect_asyncpg
, sqlalchemy.dialects.postgresql.pg8000.PGDialect_pg8000
, sqlalchemy.dialects.postgresql.psycopg2.PGDialect_psycopg2
, sqlalchemy.dialects.postgresql.pypostgresql.PGDialect_pypostgresql
Undocumented
sqlalchemy.dialects.firebird.kinterbasdb.FBDialect_kinterbasdb
, sqlalchemy.dialects.mssql.pymssql.MSDialect_pymssql
, sqlalchemy.dialects.mysql.mariadbconnector.MySQLDialect_mariadbconnector
, sqlalchemy.dialects.mysql.mysqlconnector.MySQLDialect_mysqlconnector
, sqlalchemy.dialects.mysql.mysqldb.MySQLDialect_mysqldb
, sqlalchemy.dialects.mysql.oursql.MySQLDialect_oursql
, sqlalchemy.dialects.oracle.cx_oracle.OracleDialect_cx_oracle
, sqlalchemy.dialects.postgresql.asyncpg.PGDialect_asyncpg
, sqlalchemy.dialects.postgresql.pg8000.PGDialect_pg8000
, sqlalchemy.dialects.postgresql.psycopg2.PGDialect_psycopg2
, sqlalchemy.dialects.postgresql.pygresql.PGDialect_pygresql
, sqlalchemy.dialects.postgresql.pypostgresql.PGDialect_pypostgresql
, sqlalchemy.dialects.sqlite.pysqlite.SQLiteDialect_pysqlite
, sqlalchemy.dialects.sybase.pyodbc.SybaseDialect_pyodbc
, sqlalchemy.dialects.sybase.pysybase.SybaseDialect_pysybase
Undocumented
sqlalchemy.dialects.mssql.mxodbc.MSDialect_mxodbc
, sqlalchemy.dialects.mssql.pyodbc.MSDialect_pyodbc
, sqlalchemy.dialects.mysql.cymysql.MySQLDialect_cymysql
, sqlalchemy.dialects.mysql.mysqlconnector.MySQLDialect_mysqlconnector
, sqlalchemy.dialects.mysql.pymysql.MySQLDialect_pymysql
, sqlalchemy.dialects.postgresql.pg8000.PGDialect_pg8000
, sqlalchemy.dialects.postgresql.pypostgresql.PGDialect_pypostgresql
, sqlalchemy.dialects.sqlite.pysqlite.SQLiteDialect_pysqlite
Undocumented
sqlalchemy.dialects.mssql.pyodbc.MSDialect_pyodbc
True if this dialect supports sane rowcount even if RETURNING is in use.
For dialects that don't support RETURNING, this is synonymous with supports_sane_rowcount.