One API, More Database.
Implement a set of interfaces to operate databases such as MySQL and MariaDB. His goal is not to build a powerful ORM framework like SQLAlchemy, just to satisfy the most basic CRUD operations.
from crudlib import MySQL
my = MySQL()
my.insert_one(tb="developers", doc={"name": "Zheng"})
rows = my.query(tb="developers", condition={"age": ">=18"})
# Use SQL directly
my.execute("SELECT User FROM mysql.user;")
pip install crudlib
- MySQL
- MariaDB
This project is licensed under the MIT License - see the LICENSE file for more details.
- JetBrains - Offer free Open Source license.