One API, More Database.
Project description
crudlib
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.
Quick Start
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;")
Installation
pip install crudlib
Features
- MySQL
- MariaDB
License
This project is licensed under the MIT License - see the LICENSE file for more details.
Sponsors
- JetBrains - Offer free Open Source license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
crudlib-1.2.1.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for crudlib-1.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0363368636a4bf89a42fc8cd362ee7db95f4cfcbf3277db051ba44b781539d03 |
|
MD5 | 09ac52ae0c21443bf7acbdfd071e8efb |
|
BLAKE2b-256 | b7949d4e37af667d17d6ca09db8d723e487cfb656f1e2406ecc88af8b5e65387 |