ralsei.types.column
¶
Module Contents¶
Classes¶
Base class for |
|
Column template class |
|
Rendered column class |
|
Renders to |
API¶
- class ralsei.types.column.ColumnBase(name: str)¶
Bases:
abc.ABC
Base class for
Column
andColumnRendered
Initialization
- property identifier : ralsei.types.primitives.Identifier¶
name
wrapped in a SQL identifier
- abstract render(env: ralsei.jinja.ISqlEnvironment, /, **params: Any) ralsei.types.column.ColumnRendered ¶
Turn into the rendered version
- class ralsei.types.column.Column(name: str, type: str)¶
Bases:
ralsei.types.column.ColumnBase
Column template class
- Parameters:¶
Initialization
- render(env: ralsei.jinja.ISqlEnvironment, /, **params: Any) ralsei.types.column.ColumnRendered ¶
Render the type template
- class ralsei.types.column.ColumnRendered(name: str, type: str)¶
Bases:
ralsei.types.column.ColumnBase
Rendered column class
- Parameters:¶
Initialization
-
type : ralsei.types.primitives.Sql =
None
¶
- property definition : ralsei.types.column.ColumnDefinition¶
As column definition (name + type)
- render(env: ralsei.jinja.ISqlEnvironment, /, **params: Any) ralsei.types.column.ColumnRendered ¶
- class ralsei.types.column.ColumnDefinition(column: ralsei.types.column.ColumnRendered)¶
Bases:
ralsei.types.to_sql.ToSql
Renders to
table_name TYPE
, for use in table definitionsInitialization
-
column : ralsei.types.column.ColumnRendered =
None
¶
- to_sql(env: ralsei.jinja.ISqlEnvironment) str ¶
-
column : ralsei.types.column.ColumnRendered =