arraydb 0.1.1

Last updated:

0 purchases

arraydb 0.1.1 Image
arraydb 0.1.1 Images
Add to Cart

Description:

arraydb 0.1.1

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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.