OmniSciDB  a7179b2938
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
__init__.py
Go to the documentation of this file.
1 from pkg_resources import get_distribution, DistributionNotFound
2 
3 # module constants
4 try:
5  __version__ = get_distribution(__name__).version
6 except DistributionNotFound:
7  # package is not installed
8  pass
9 
10 # clean up
11 del get_distribution, DistributionNotFound
12 
13 apilevel = "2.0"
14 threadsafety = 2
15 paramstyle = "named"
16 
17 from .connection import connect, Connection # noqa
18 
19 from .cursor import Cursor # noqa
20 
21 from .exceptions import ( # noqa
22  Warning,
23  Error,
24  InterfaceError,
25  DatabaseError,
26  DataError,
27  OperationalError,
28  IntegrityError,
29  InternalError,
30  ProgrammingError,
31  NotSupportedError,
32 )
33 
34 
35 from .dtypes import ( # noqa
36  Binary,
37  Date,
38  Time,
39  Timestamp,
40  BINARY,
41  STRING,
42  NUMBER,
43  DATETIME,
44  ROWID,
45  DateFromTicks,
46  TimeFromTicks,
47  TimestampFromTicks,
48 )