]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
add configuration for mssql with docker
authorFederico Caselli <cfederico87@gmail.com>
Fri, 24 Jan 2020 18:22:19 +0000 (19:22 +0100)
committerFederico Caselli <cfederico87@gmail.com>
Fri, 24 Jan 2020 18:22:19 +0000 (19:22 +0100)
README.unittests.rst
setup.cfg

index 9528fdf8e23bbfd1d7058e25efe6d758e3a31e5e..d108a4839d213000ab0748e3c6f919c84c021fa0 100644 (file)
@@ -283,6 +283,10 @@ intended for production use!
     # To stop the container. It will also remove it.
     docker stop mssql
 
+NOTE: with this configuration the url to use is not the default one configured
+in setup, but ``mssql+pymssql://scott:tiger^5HHH@127.0.0.1:1433/test``.  It can
+be used with py.test by using ``--db docker_mssql``
+
 CONFIGURING LOGGING
 -------------------
 SQLAlchemy logs its activity and debugging through Python's logging package.
index 2ee0abbe07af8846790188a28249a6255fbeee6f..6386e6002d0b72a5f7d7e66d1f102888716f2529 100644 (file)
--- a/setup.cfg
+++ b/setup.cfg
@@ -60,6 +60,7 @@ pymysql=mysql+pymysql://scott:tiger@127.0.0.1:3306/test?charset=utf8mb4
 
 mssql=mssql+pyodbc://scott:tiger^5HHH@mssql2017:1433/test?driver=ODBC+Driver+13+for+SQL+Server
 mssql_pymssql=mssql+pymssql://scott:tiger@ms_2008
+docker_mssql=mssql+pymssql://scott:tiger^5HHH@127.0.0.1:1433/test
 
 oracle=oracle://scott:tiger@127.0.0.1:1521
 oracle8=oracle://scott:tiger@127.0.0.1:1521/?use_ansi=0