Skip to main content

A beginner friendly database

Project description

resql: Database For Beginners

Quick Examples


imports

pip install resql
import resql

database = resql.ReSql("mydb.db")
# default is in :memory:

.create_table(name)

creates a database table.

database.create_table("newtable")
# {'status': 'success', 'table': 'newtable'}

.insert(key, value, [table])

insert into given table.

database.insert("key","value")
# {'status': 'success'}

.all([table])

find data from given table.

database.all()
# [('key','value')]

.find(key, [table]) or .get(key, [table])

find data from given table.

database.find("key")
# value

.wipe([table])

wipe complete table.

database.wipe()
# {'status': 'success'}

.run(sql)

directly run sql query.

database.run("SELECT * FROM table")
# cursor

.delete(key, [table])

delete key from table.

database.delete("key")
# value

thanks to avonryle#2022 for letting me make the python version of ByteDatabase

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

resql-0.1.4.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

resql-0.1.4-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file resql-0.1.4.tar.gz.

File metadata

  • Download URL: resql-0.1.4.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.4 Windows/10

File hashes

Hashes for resql-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e1645808b26d984f037decc3c31de4700c63387b462290910de87d7f88c2639b
MD5 2fe12d6fb9f6d5c9089e9d274e92619c
BLAKE2b-256 ce64dc5f2cc4cd9892c883cc58cb3e3851355420b601e0fde9cd19edbb72900e

See more details on using hashes here.

File details

Details for the file resql-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: resql-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.4 Windows/10

File hashes

Hashes for resql-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 179aed5b4142541dcee447f65f8f0759757e351b90a44391cc0170c0952d9103
MD5 283c913a763df17f0d82deddde766635
BLAKE2b-256 e76c7c6659102421fd758abc962e25d9169a8393b38a11e303c72a0d55954030

See more details on using hashes here.

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