Database using array. With an basic ORM
Project description
ArrayDb
A database where data is stored in a array of dicts
Features
- Insert, Update, Delete
- Filter data
- Change/Add columns in database
Demo
from arraydb import ArrayDb
members = ArrayDb(["username", "age", "gender"], [])
# insert data
members.insert({"username": "John", "age": 22, "gender": "Male"})
members.insert({"username": "Ayesha", "age": 20, "gender": "Female"})
# Update specific data
members.update(
where={"username": "John"},
data={"age": 21}
)
# Even better
members.update(
where={"age": {"gt": 20}}, # Update all rows where age is greater than 20
data={"age": 21}
) # gt, lt, gte, lte, not, contains, in, startswith, endswith -> More coming soon
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
arraydb-0.1.1.tar.gz
(4.6 kB
view details)
Built Distribution
File details
Details for the file arraydb-0.1.1.tar.gz
.
File metadata
- Download URL: arraydb-0.1.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86dff486543bc6b4a4e67fee954fd421cc4ef05ea2e0b5e2182abaf93d0c19f3 |
|
MD5 | e52f546c61a3459057726f3b3395eedc |
|
BLAKE2b-256 | 82ab0c58bd66a0a22811cc412519e2419b008997114a4eaf4ecd039bf91c7927 |
File details
Details for the file arraydb-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: arraydb-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4737818f57f969cb4522c4f7d47ccdfe4ebc093e594de390e44bcb099a0147c |
|
MD5 | 03ec8f6252315bd0ba614871ddb950ab |
|
BLAKE2b-256 | 29533742b7ea154bb2ce4bdb86bb65c24bc9612900525052a5b44177fd07bb1f |