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.2.tar.gz
(9.2 kB
view hashes)
Built Distribution
Close
Hashes for crudlib-1.2.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a257790761cfbea155339b7c9e77681337addb936509c8d58006ecaac6562030 |
|
MD5 | 1aca40b077a4d6f716352da99c73e4ca |
|
BLAKE2b-256 | 0249ad5f18e2a6ef0efa0b97ee97b8e8e29ca7935a2ed4c06db3a2bfd38b3d31 |