ralsei.dialect
¶
Module Contents¶
Classes¶
SQL dialect settings |
|
Functions¶
Decorator for registering a custom dialect |
|
Get DialectInfo for a given sqlalchemy dialect name |
Aliases¶
You can use both a class instance or a class as dialect |
API¶
- class ralsei.dialect.BaseDialectInfo¶
SQL dialect settings
-
autoincrement_key : ralsei.types.ToSql =
'Sql(...)'
¶
-
autoincrement_key : ralsei.types.ToSql =
- class ralsei.dialect.PostgresDialectInfo¶
- class ralsei.dialect.SqliteDialectInfo¶
Bases:
ralsei.dialect.BaseDialectInfo
-
name =
'sqlite'
¶
-
autoincrement_key =
'Sql(...)'
¶
-
supports_column_if_not_exists =
False
¶
-
supports_rowcount =
False
¶
-
name =
- class ralsei.dialect.DialectInfo¶
- type DialectInfo = ralsei.dialect.BaseDialectInfo | type[ralsei.dialect.BaseDialectInfo]
You can use both a class instance or a class as dialect
- ralsei.dialect.register_dialect(driver: str) collections.abc.Callable[[ralsei.dialect.register_dialect.D], ralsei.dialect.register_dialect.D] ¶
Decorator for registering a custom dialect
Example
@register_dialect("duckdb") class DuckdbDialectInfo(BaseDialectInfo): pass
- ralsei.dialect.get_dialect(driver: str) ralsei.dialect.DialectInfo ¶
Get DialectInfo for a given sqlalchemy dialect name