Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

arraydb-0.1.1-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page