Skip to content

sqlite

SQLite-specific column types.

Blob

Bases: Column[bytes]

Blob column type for storing binary data.

Source code in src/embar/column/sqlite.py
10
11
12
13
14
15
16
class Blob(Column[bytes]):
    """
    Blob column type for storing binary data.
    """

    _sql_type: str = "BLOB"
    _py_type: Type = bytes

Float

Bases: Column[float]

A floating point column type.

Source code in src/embar/column/common.py
153
154
155
156
157
158
159
class Float(Column[float]):
    """
    A floating point column type.
    """

    _sql_type: str = "REAL"
    _py_type: Type = float

Integer

Bases: Column[int]

An integer column type.

Source code in src/embar/column/common.py
144
145
146
147
148
149
150
class Integer(Column[int]):
    """
    An integer column type.
    """

    _sql_type: str = "INTEGER"
    _py_type: Type = int

Text

Bases: Column[str]

A text column type.

Source code in src/embar/column/common.py
135
136
137
138
139
140
141
class Text(Column[str]):
    """
    A text column type.
    """

    _sql_type: str = "TEXT"
    _py_type: Type = str