|
| 1 | +#coding:utf-8 |
| 2 | +# |
| 3 | +# PROGRAM/MODULE: firebird-driver |
| 4 | +# FILE: firebird/driver/__init__.py |
| 5 | +# DESCRIPTION: The Firebird driver for Python 3 |
| 6 | +# CREATED: 4.3.2020 |
| 7 | +# |
| 8 | +# The contents of this file are subject to the MIT License |
| 9 | +# |
| 10 | +# Permission is hereby granted, free of charge, to any person obtaining a copy |
| 11 | +# of this software and associated documentation files (the "Software"), to deal |
| 12 | +# in the Software without restriction, including without limitation the rights |
| 13 | +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 14 | +# copies of the Software, and to permit persons to whom the Software is |
| 15 | +# furnished to do so, subject to the following conditions: |
| 16 | +# |
| 17 | +# The above copyright notice and this permission notice shall be included in all |
| 18 | +# copies or substantial portions of the Software. |
| 19 | +# |
| 20 | +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 21 | +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 22 | +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 23 | +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 24 | +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 25 | +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 26 | +# SOFTWARE. |
| 27 | +# |
| 28 | +# Copyright (c) 2020 Firebird Project (www.firebirdsql.org) |
| 29 | +# All Rights Reserved. |
| 30 | +# |
| 31 | +# Contributor(s): Pavel Císař (original code) |
| 32 | +# ______________________________________ |
| 33 | + |
| 34 | +"""firebird-driver - The Firebird driver for Python 3 |
| 35 | +
|
| 36 | +
|
| 37 | +""" |
| 38 | + |
| 39 | +from .hooks import hooks, HookType |
| 40 | +from .fbapi import load_api, get_api |
| 41 | +from .core import connect, create_database, connect_service, transaction, \ |
| 42 | + TPB, DPB, \ |
| 43 | + ISOLATION_READ_COMMITED_LEGACY, ISOLATION_READ_COMMITED, \ |
| 44 | + ISOLATION_REPEATABLE_READ, ISOLATION_SNAPSHOT, \ |
| 45 | + ISOLATION_SERIALIZABLE, ISOLATION_SNAPSHOT_TABLE_STABILITY, \ |
| 46 | + ISOLATION_READ_COMMITED_RO, \ |
| 47 | + IMPLEMENTATION_NAMES, PROVIDER_NAMES, DB_CLASS_NAMES, \ |
| 48 | + CHARSET_MAP |
| 49 | +from .types import Warning, Error, InterfaceError, DatabaseError, DataError, \ |
| 50 | + OperationalError, IntegrityError, InternalError, ProgrammingError, \ |
| 51 | + NotSupportedError, \ |
| 52 | + NetProtocol, DBKeyScope, DbInfoCode, \ |
| 53 | + TraInfoCode, TraInfoIsolation, TraInfoReadCommitted, \ |
| 54 | + TraInfoAccess, Isolation, ReadCommitted, LockResolution, AccessMode, \ |
| 55 | + TableShareMode, TableAccessMode, DefaultAction, StatementType, \ |
| 56 | + PrpAccessMode, ShutdownMode, OnlineMode, ShutdownMethod, \ |
| 57 | + ServerCapability, SvcRepairFlag, SvcStatFlag, SvcBackupFlag, \ |
| 58 | + SvcRestoreFlag, SvcNBackupFlag, \ |
| 59 | + apilevel, threadsafety, paramstyle, DESCRIPTION_NAME, DESCRIPTION_TYPE_CODE, \ |
| 60 | + DESCRIPTION_DISPLAY_SIZE, DESCRIPTION_INTERNAL_SIZE, DESCRIPTION_PRECISION, \ |
| 61 | + DESCRIPTION_SCALE, DESCRIPTION_NULL_OK, Date, Time, Timestamp, DateFromTicks, \ |
| 62 | + TimeFromTicks, TimestampFromTicks, STRING, BINARY, NUMBER, DATETIME, ROWID |
| 63 | + |
0 commit comments