Skip to content

Commit e88adb1

Browse files
committed
Releasing Alpha Code to Git
1 parent a7a7d25 commit e88adb1

30 files changed

+6772
-0
lines changed

.gitignore

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Ignore all files in the pybind/build directory
2+
mssql_python/pybind/build/
3+
4+
mssql_python/pybind/pymsbuild/build/
5+
6+
# Ignore pyd file
7+
mssql_python/ddbc_bindings.pyd
8+
9+
# Ignore pycache files and folders
10+
__pycache__/
11+
**/__pycache__/
12+
*.pyc
13+
14+
# Ignore pytest cache
15+
.pytest_cache/
16+
**/.pytest_cache/
17+
18+
# Ignore log files
19+
*.log
20+
21+
# Ignore Visual Studio files
22+
mssql_python/.vs
23+
.vs
24+
25+
# Ignore test-*.xml files
26+
test-*.xml
27+
**/test-**.xml
28+
29+
# Ignore the build & mssql_python.egg-info directories
30+
build/
31+
mssql_python.egg-info/

mssql_python/__init__.py

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
"""
2+
Copyright (c) Microsoft Corporation.
3+
Licensed under the MIT license.
4+
This module initializes the mssql_python package.
5+
"""
6+
7+
# Exceptions
8+
# https://www.python.org/dev/peps/pep-0249/#exceptions
9+
from .exceptions import (
10+
Warning,
11+
Error,
12+
InterfaceError,
13+
DatabaseError,
14+
DataError,
15+
OperationalError,
16+
IntegrityError,
17+
InternalError,
18+
ProgrammingError,
19+
NotSupportedError,
20+
)
21+
22+
# Type Objects
23+
from .type import (
24+
Date,
25+
Time,
26+
Timestamp,
27+
DateFromTicks,
28+
TimeFromTicks,
29+
TimestampFromTicks,
30+
Binary,
31+
STRING,
32+
BINARY,
33+
NUMBER,
34+
DATETIME,
35+
ROWID,
36+
)
37+
38+
# Connection Objects
39+
from .connection import Connection
40+
from .db_connection import connect
41+
42+
# Cursor Objects
43+
from .cursor import Cursor
44+
45+
# Logging Configuration
46+
from .logging_config import setup_logging, get_logger
47+
48+
# Constants
49+
from .constants import ConstantsDDBC
50+
51+
# GLOBALS
52+
# Read-Only
53+
apilevel = "2.0"
54+
paramstyle = "qmark"
55+
threadsafety = 1

0 commit comments

Comments
 (0)