Ai
3 Star 3 Fork 1

Gitee 极速下载/SQLAlchemy-Python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/zzzeek/sqlalchemy
克隆/下载
reap_dbs.py 630 Bytes
一键复制 编辑 原始数据 按行查看 历史
"""Drop Oracle Database, SQL Server databases that are left over from a
multiprocessing test run.
Currently the cx_Oracle driver seems to sometimes not release a
TCP connection even if close() is called, which prevents the provisioning
system from dropping a database in-process.
For SQL Server, databases still remain in use after tests run and
running a kill of all detected sessions does not seem to release the
database in process.
"""
import logging
import sys
from sqlalchemy.testing import provision
logging.basicConfig()
logging.getLogger(provision.__name__).setLevel(logging.INFO)
provision.reap_dbs(sys.argv[1])
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mirrors/SQLAlchemy-Python.git
git@gitee.com:mirrors/SQLAlchemy-Python.git
mirrors
SQLAlchemy-Python
SQLAlchemy-Python
main

搜索帮助