Skip to content

Commit b48b2bc

Browse files
chore: remove host param from SQL Server samples (#632)
1 parent 0118908 commit b48b2bc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

samples/notebooks/sqlserver_python_connector.ipynb

+4-4
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@
380380
"source": [
381381
"# install dependencies\n",
382382
"import sys\n",
383-
"!{sys.executable} -m pip install cloud-sql-python-connector[\"pytds\"] SQLAlchemy==2.0.2 sqlalchemy-pytds\n"
383+
"!{sys.executable} -m pip install cloud-sql-python-connector[\"pytds\"] SQLAlchemy==2.0.4 sqlalchemy-pytds==0.3.5\n"
384384
],
385385
"execution_count": null,
386386
"outputs": []
@@ -472,7 +472,7 @@
472472
"\n",
473473
"# create connection pool with 'creator' argument to our connection object function\n",
474474
"pool = sqlalchemy.create_engine(\n",
475-
" \"mssql+pytds://localhost\",\n",
475+
" \"mssql+pytds://\",\n",
476476
" creator=getconn,\n",
477477
")"
478478
],
@@ -642,7 +642,7 @@
642642
"\n",
643643
"# create connection pool\n",
644644
"pool = sqlalchemy.create_engine(\n",
645-
" \"mssql+pytds://localhost\",\n",
645+
" \"mssql+pytds://\",\n",
646646
" creator=getconn,\n",
647647
")\n",
648648
"\n",
@@ -662,4 +662,4 @@
662662
"outputs": []
663663
}
664664
]
665-
}
665+
}

tests/system/test_pytds_connection.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def getconn() -> pytds.Connection:
4848

4949
# create SQLAlchemy connection pool
5050
pool = sqlalchemy.create_engine(
51-
"mssql+pytds://localhost",
51+
"mssql+pytds://",
5252
creator=getconn,
5353
)
5454
pool.dialect.description_encoding = None

0 commit comments

Comments
 (0)