开发者

Python 3 library for working code-first with Sqlite

开发者 https://www.devze.com 2023-03-24 12:38 出处:网络
Is there a Python 3 library that allows working with SQL databases using a code-first approach? By code-first I understand being able to infer the DB schema from a set of classes and to generate DDL

Is there a Python 3 library that allows working with SQL databases using a code-first approach?

By code-first I understand being able to infer the DB schema from a set of classes and to generate DDL queries to create开发者_开发问答 the DB objects if needed.

I'm particularly interested in working with a Sqlite database.


SQLAlchemy supports Python 3. It also support SQLite, and defining the schema as Python classes, so it seems like the perfect fit for your requirements.

0

精彩评论

暂无评论...
验证码 换一张
取 消