File tree Expand file tree Collapse file tree 2 files changed +15
-11
lines changed Expand file tree Collapse file tree 2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change 55
66from __future__ import absolute_import , unicode_literals
77
8- import ydb
9- from ydb .dbapi .errors import NotSupportedError
10- from ydb .sqlalchemy .types import UInt32 , UInt64
11-
128
139try :
10+ import ydb
11+ from ydb .dbapi .errors import NotSupportedError
12+ from ydb .sqlalchemy .types import UInt32 , UInt64
13+
1414 from sqlalchemy .engine .default import DefaultDialect
1515 from sqlalchemy .sql .compiler import (
1616 IdentifierPreparer ,
Original file line number Diff line number Diff line change 1- from sqlalchemy import types
2- from sqlalchemy .sql import type_api
3- from sqlalchemy .sql .elements import ColumnElement
4- from sqlalchemy import util , exc
1+ try :
2+ from sqlalchemy .types import Integer
3+ from sqlalchemy .sql import type_api
4+ from sqlalchemy .sql .elements import ColumnElement
5+ from sqlalchemy import util , exc
6+ except ImportError :
7+ Integer = object
8+ ColumnElement = object
59
610
7- class UInt32 (types . Integer ):
11+ class UInt32 (Integer ):
812 __visit_name__ = "uint32"
913
1014
11- class UInt64 (types . Integer ):
15+ class UInt64 (Integer ):
1216 __visit_name__ = "uint64"
1317
1418
15- class UInt8 (types . Integer ):
19+ class UInt8 (Integer ):
1620 __visit_name__ = "uint8"
1721
1822
You can’t perform that action at this time.
0 commit comments