MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / SQLiteDialect

Class SQLiteDialect

lib/sqlalchemy/dialects/sqlite/base.py:2102–3066  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2100
2101
2102class SQLiteDialect(default.DefaultDialect):
2103 name = "sqlite"
2104 supports_alter = False
2105
2106 # SQlite supports "DEFAULT VALUES" but *does not* support
2107 # "VALUES (DEFAULT)"
2108 supports_default_values = True
2109 supports_default_metavalue = False
2110
2111 # sqlite issue:
2112 # https://github.com/python/cpython/issues/93421
2113 # note this parameter is no longer used by the ORM or default dialect
2114 # see #9414
2115 supports_sane_rowcount_returning = False
2116
2117 supports_empty_insert = False
2118 supports_cast = True
2119 supports_multivalues_insert = True
2120 use_insertmanyvalues = True
2121 tuple_in_values = True
2122 supports_statement_cache = True
2123 insert_null_pk_still_autoincrements = True
2124 insert_returning = True
2125 update_returning = True
2126 update_returning_multifrom = True
2127 delete_returning = True
2128 update_returning_multifrom = True
2129
2130 supports_default_metavalue = True
2131 """dialect supports INSERT... VALUES (DEFAULT) syntax"""
2132
2133 default_metavalue_token = "NULL"
2134 """for INSERT... VALUES (DEFAULT) syntax, the token to put in the
2135 parenthesis."""
2136
2137 default_paramstyle = "qmark"
2138 execution_ctx_cls = SQLiteExecutionContext
2139 statement_compiler = SQLiteCompiler
2140 ddl_compiler = SQLiteDDLCompiler
2141 type_compiler_cls = SQLiteTypeCompiler
2142 preparer = SQLiteIdentifierPreparer
2143 ischema_names = ischema_names
2144 colspecs = colspecs
2145
2146 construct_arguments = [
2147 (
2148 sa_schema.Table,
2149 {
2150 "autoincrement": False,
2151 "with_rowid": True,
2152 "strict": False,
2153 },
2154 ),
2155 (sa_schema.Index, {"where": None}),
2156 (
2157 sa_schema.Column,
2158 {
2159 "on_conflict_primary_key": None,

Callers 1

goMethod · 0.90

Calls

no outgoing calls

Tested by 1

goMethod · 0.72