Change pyodbc connection from using args to using string (#67)
This commit is contained in:
Родитель
3b1398f66b
Коммит
57c00094f9
|
@ -10,7 +10,7 @@ pip install sqlmlutils
|
|||
```
|
||||
To install from file, run:
|
||||
```
|
||||
pip install Python/dist/sqlmlutils-1.0.0.zip
|
||||
pip install Python/dist/sqlmlutils-1.0.1.zip
|
||||
```
|
||||
|
||||
If you are developing on your own branch and want to rebuild and install the package, you can use the buildandinstall.cmd script that is included.
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
python.exe setup.py sdist --formats=zip
|
||||
python.exe -m pip install --upgrade --upgrade-strategy only-if-needed dist\sqlmlutils-1.0.0.zip
|
||||
python.exe -m pip install --upgrade --upgrade-strategy only-if-needed dist\sqlmlutils-1.0.1.zip
|
Двоичный файл не отображается.
|
@ -6,7 +6,7 @@ from setuptools import setup
|
|||
setup(
|
||||
name='sqlmlutils',
|
||||
packages=['sqlmlutils', 'sqlmlutils/packagemanagement'],
|
||||
version='1.0.0',
|
||||
version='1.0.1',
|
||||
url='https://github.com/Microsoft/sqlmlutils/Python',
|
||||
license='MIT License',
|
||||
desciption='A client side package for working with SQL Server',
|
||||
|
|
|
@ -102,11 +102,7 @@ class SQLQueryExecutor:
|
|||
port=self._connection._port
|
||||
)
|
||||
|
||||
self._cnxn = pyodbc.connect(driver=self._connection._driver,
|
||||
server=server,
|
||||
user=self._connection.uid,
|
||||
password=self._connection.pwd,
|
||||
database=self._connection.database,
|
||||
self._cnxn = pyodbc.connect(self._connection.connection_string,
|
||||
autocommit=True)
|
||||
self._cursor = self._cnxn.cursor()
|
||||
return self
|
||||
|
|
|
@ -19,7 +19,7 @@ pip install sqlmlutils
|
|||
```
|
||||
To install from file:
|
||||
```
|
||||
pip install Python/dist/sqlmlutils-1.0.0.zip
|
||||
pip install Python/dist/sqlmlutils-1.0.1.zip
|
||||
```
|
||||
|
||||
R:
|
||||
|
|
Загрузка…
Ссылка в новой задаче