Coverage for sqlmodel/__init__.py: 100%
135 statements
« prev ^ index » next coverage.py v7.6.1, created at 2024-09-09 00:02 +0000
« prev ^ index » next coverage.py v7.6.1, created at 2024-09-09 00:02 +0000
1__version__ = "0.0.22" 1abcdef
3# Re-export from SQLAlchemy
4from sqlalchemy.engine import create_engine as create_engine 1abcdef
5from sqlalchemy.engine import create_mock_engine as create_mock_engine 1abcdef
6from sqlalchemy.engine import engine_from_config as engine_from_config 1abcdef
7from sqlalchemy.inspection import inspect as inspect 1abcdef
8from sqlalchemy.pool import QueuePool as QueuePool 1abcdef
9from sqlalchemy.pool import StaticPool as StaticPool 1abcdef
10from sqlalchemy.schema import BLANK_SCHEMA as BLANK_SCHEMA 1abcdef
11from sqlalchemy.schema import DDL as DDL 1abcdef
12from sqlalchemy.schema import CheckConstraint as CheckConstraint 1abcdef
13from sqlalchemy.schema import Column as Column 1abcdef
14from sqlalchemy.schema import ColumnDefault as ColumnDefault 1abcdef
15from sqlalchemy.schema import Computed as Computed 1abcdef
16from sqlalchemy.schema import Constraint as Constraint 1abcdef
17from sqlalchemy.schema import DefaultClause as DefaultClause 1abcdef
18from sqlalchemy.schema import FetchedValue as FetchedValue 1abcdef
19from sqlalchemy.schema import ForeignKey as ForeignKey 1abcdef
20from sqlalchemy.schema import ForeignKeyConstraint as ForeignKeyConstraint 1abcdef
21from sqlalchemy.schema import Identity as Identity 1abcdef
22from sqlalchemy.schema import Index as Index 1abcdef
23from sqlalchemy.schema import MetaData as MetaData 1abcdef
24from sqlalchemy.schema import PrimaryKeyConstraint as PrimaryKeyConstraint 1abcdef
25from sqlalchemy.schema import Sequence as Sequence 1abcdef
26from sqlalchemy.schema import Table as Table 1abcdef
27from sqlalchemy.schema import UniqueConstraint as UniqueConstraint 1abcdef
28from sqlalchemy.sql import LABEL_STYLE_DEFAULT as LABEL_STYLE_DEFAULT 1abcdef
29from sqlalchemy.sql import ( 1abcdef
30 LABEL_STYLE_DISAMBIGUATE_ONLY as LABEL_STYLE_DISAMBIGUATE_ONLY,
31)
32from sqlalchemy.sql import LABEL_STYLE_NONE as LABEL_STYLE_NONE 1abcdef
33from sqlalchemy.sql import ( 1abcdef
34 LABEL_STYLE_TABLENAME_PLUS_COL as LABEL_STYLE_TABLENAME_PLUS_COL,
35)
36from sqlalchemy.sql import alias as alias 1abcdef
37from sqlalchemy.sql import bindparam as bindparam 1abcdef
38from sqlalchemy.sql import column as column 1abcdef
39from sqlalchemy.sql import delete as delete 1abcdef
40from sqlalchemy.sql import except_ as except_ 1abcdef
41from sqlalchemy.sql import except_all as except_all 1abcdef
42from sqlalchemy.sql import exists as exists 1abcdef
43from sqlalchemy.sql import false as false 1abcdef
44from sqlalchemy.sql import func as func 1abcdef
45from sqlalchemy.sql import insert as insert 1abcdef
46from sqlalchemy.sql import intersect as intersect 1abcdef
47from sqlalchemy.sql import intersect_all as intersect_all 1abcdef
48from sqlalchemy.sql import join as join 1abcdef
49from sqlalchemy.sql import lambda_stmt as lambda_stmt 1abcdef
50from sqlalchemy.sql import lateral as lateral 1abcdef
51from sqlalchemy.sql import literal as literal 1abcdef
52from sqlalchemy.sql import literal_column as literal_column 1abcdef
53from sqlalchemy.sql import modifier as modifier 1abcdef
54from sqlalchemy.sql import null as null 1abcdef
55from sqlalchemy.sql import nullsfirst as nullsfirst 1abcdef
56from sqlalchemy.sql import nullslast as nullslast 1abcdef
57from sqlalchemy.sql import outerjoin as outerjoin 1abcdef
58from sqlalchemy.sql import outparam as outparam 1abcdef
59from sqlalchemy.sql import table as table 1abcdef
60from sqlalchemy.sql import tablesample as tablesample 1abcdef
61from sqlalchemy.sql import text as text 1abcdef
62from sqlalchemy.sql import true as true 1abcdef
63from sqlalchemy.sql import union as union 1abcdef
64from sqlalchemy.sql import union_all as union_all 1abcdef
65from sqlalchemy.sql import update as update 1abcdef
66from sqlalchemy.sql import values as values 1abcdef
67from sqlalchemy.types import ARRAY as ARRAY 1abcdef
68from sqlalchemy.types import BIGINT as BIGINT 1abcdef
69from sqlalchemy.types import BINARY as BINARY 1abcdef
70from sqlalchemy.types import BLOB as BLOB 1abcdef
71from sqlalchemy.types import BOOLEAN as BOOLEAN 1abcdef
72from sqlalchemy.types import CHAR as CHAR 1abcdef
73from sqlalchemy.types import CLOB as CLOB 1abcdef
74from sqlalchemy.types import DATE as DATE 1abcdef
75from sqlalchemy.types import DATETIME as DATETIME 1abcdef
76from sqlalchemy.types import DECIMAL as DECIMAL 1abcdef
77from sqlalchemy.types import DOUBLE as DOUBLE 1abcdef
78from sqlalchemy.types import DOUBLE_PRECISION as DOUBLE_PRECISION 1abcdef
79from sqlalchemy.types import FLOAT as FLOAT 1abcdef
80from sqlalchemy.types import INT as INT 1abcdef
81from sqlalchemy.types import INTEGER as INTEGER 1abcdef
82from sqlalchemy.types import JSON as JSON 1abcdef
83from sqlalchemy.types import NCHAR as NCHAR 1abcdef
84from sqlalchemy.types import NUMERIC as NUMERIC 1abcdef
85from sqlalchemy.types import NVARCHAR as NVARCHAR 1abcdef
86from sqlalchemy.types import REAL as REAL 1abcdef
87from sqlalchemy.types import SMALLINT as SMALLINT 1abcdef
88from sqlalchemy.types import TEXT as TEXT 1abcdef
89from sqlalchemy.types import TIME as TIME 1abcdef
90from sqlalchemy.types import TIMESTAMP as TIMESTAMP 1abcdef
91from sqlalchemy.types import UUID as UUID 1abcdef
92from sqlalchemy.types import VARBINARY as VARBINARY 1abcdef
93from sqlalchemy.types import VARCHAR as VARCHAR 1abcdef
94from sqlalchemy.types import BigInteger as BigInteger 1abcdef
95from sqlalchemy.types import Boolean as Boolean 1abcdef
96from sqlalchemy.types import Date as Date 1abcdef
97from sqlalchemy.types import DateTime as DateTime 1abcdef
98from sqlalchemy.types import Double as Double 1abcdef
99from sqlalchemy.types import Enum as Enum 1abcdef
100from sqlalchemy.types import Float as Float 1abcdef
101from sqlalchemy.types import Integer as Integer 1abcdef
102from sqlalchemy.types import Interval as Interval 1abcdef
103from sqlalchemy.types import LargeBinary as LargeBinary 1abcdef
104from sqlalchemy.types import Numeric as Numeric 1abcdef
105from sqlalchemy.types import PickleType as PickleType 1abcdef
106from sqlalchemy.types import SmallInteger as SmallInteger 1abcdef
107from sqlalchemy.types import String as String 1abcdef
108from sqlalchemy.types import Text as Text 1abcdef
109from sqlalchemy.types import Time as Time 1abcdef
110from sqlalchemy.types import TupleType as TupleType 1abcdef
111from sqlalchemy.types import TypeDecorator as TypeDecorator 1abcdef
112from sqlalchemy.types import Unicode as Unicode 1abcdef
113from sqlalchemy.types import UnicodeText as UnicodeText 1abcdef
114from sqlalchemy.types import Uuid as Uuid 1abcdef
116# From SQLModel, modifications of SQLAlchemy or equivalents of Pydantic
117from .main import Field as Field 1abcdef
118from .main import Relationship as Relationship 1abcdef
119from .main import SQLModel as SQLModel 1abcdef
120from .orm.session import Session as Session 1abcdef
121from .sql.expression import all_ as all_ 1abcdef
122from .sql.expression import and_ as and_ 1abcdef
123from .sql.expression import any_ as any_ 1abcdef
124from .sql.expression import asc as asc 1abcdef
125from .sql.expression import between as between 1abcdef
126from .sql.expression import case as case 1abcdef
127from .sql.expression import cast as cast 1abcdef
128from .sql.expression import col as col 1abcdef
129from .sql.expression import collate as collate 1abcdef
130from .sql.expression import desc as desc 1abcdef
131from .sql.expression import distinct as distinct 1abcdef
132from .sql.expression import extract as extract 1abcdef
133from .sql.expression import funcfilter as funcfilter 1abcdef
134from .sql.expression import not_ as not_ 1abcdef
135from .sql.expression import nulls_first as nulls_first 1abcdef
136from .sql.expression import nulls_last as nulls_last 1abcdef
137from .sql.expression import or_ as or_ 1abcdef
138from .sql.expression import over as over 1abcdef
139from .sql.expression import select as select 1abcdef
140from .sql.expression import tuple_ as tuple_ 1abcdef
141from .sql.expression import type_coerce as type_coerce 1abcdef
142from .sql.expression import within_group as within_group 1abcdef
143from .sql.sqltypes import AutoString as AutoString 1abcdef