Iva*_*van 5 python postgresql sqlalchemy
我对 Postgres DB 使用 sqlalchemy。
engine = create_engine(
"postgresql://postgres:postgres@localhost/test"
...
Run Code Online (Sandbox Code Playgroud)
创建不使用 Postgres 方言(psycopg2、pg8000 或其他)的引擎。所以我的问题:什么是默认事务隔离级别?默认的 Postgres 方言是什么?
根据文档,SQLAlchemy 使用的默认 postgres 驱动程序是 psycopg2。
默认的事务隔离级别是在数据库端配置的,而不是由客户端配置的。开箱即用,它是 READ COMMITTED。
| 归档时间: |
|
| 查看次数: |
1872 次 |
| 最近记录: |