使用SQLAlchemy,引擎创建如下:
from sqlalchemy import create_engine engine = create_engine("postgresql://localhost/mydb")
engine如果数据库不存在,则访问失败.如果指定的数据库不存在,是否可以告诉SQLAlchemy创建新数据库?
engine
python sqlalchemy
python ×1
sqlalchemy ×1