ralsei.dialect

Module Contents

Classes

BaseDialectInfo

SQL dialect settings

PostgresDialectInfo

SqliteDialectInfo

Functions

register_dialect

Decorator for registering a custom dialect

get_dialect

Get DialectInfo for a given sqlalchemy dialect name

Aliases

DialectInfo

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(...)'
supports_column_if_not_exists : bool = True
supports_rowcount : bool = True
class ralsei.dialect.PostgresDialectInfo

Bases: ralsei.dialect.BaseDialectInfo

class ralsei.dialect.SqliteDialectInfo

Bases: ralsei.dialect.BaseDialectInfo

name = 'sqlite'
autoincrement_key = 'Sql(...)'
supports_column_if_not_exists = False
supports_rowcount = False
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