Skip to content

Commit 5a8d28b

Browse files
committed
dbapi attributes
1 parent 224653f commit 5a8d28b

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

ydb_dbapi/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,10 @@
66
from .cursors import AsyncCursor
77
from .cursors import Cursor
88
from .errors import *
9+
from .version import version
10+
11+
__version__ = version
12+
13+
apilevel = "2.0"
14+
threadsafety = 0
15+
paramstyle = "pyformat"

ydb_dbapi/errors.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
from google.protobuf.message import Message
55

66

7+
class Warning(Exception): # noqa: N818,A001
8+
pass
9+
10+
711
class Error(Exception):
812
def __init__(
913
self,

ydb_dbapi/version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version = "0.0.1"

0 commit comments

Comments
 (0)