Skip to content

Commit 751b0b8

Browse files
committed
Adding init.py
1 parent c55f7a4 commit 751b0b8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mssql_python/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@
4747
# Constants
4848
from .constants import ConstantsDDBC
4949

50+
# Export specific constants for setencoding()
51+
SQL_CHAR = ConstantsDDBC.SQL_CHAR.value
52+
SQL_WCHAR = ConstantsDDBC.SQL_WCHAR.value
53+
5054
# GLOBALS
5155
# Read-Only
5256
apilevel = "2.0"
@@ -71,4 +75,3 @@ def pooling(max_size=100, idle_timeout=600, enabled=True):
7175
PoolingManager.disable()
7276
else:
7377
PoolingManager.enable(max_size, idle_timeout)
74-

0 commit comments

Comments
 (0)