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.3.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

resql-0.1.3-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: resql-0.1.3.tar.gz
  • Upload date:
  • Size: 5.6 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.3.tar.gz
Algorithm Hash digest
SHA256 707d6700c619cf1627b96bedb923dd5741d7c3595c8483c824bef0610bff3e93
MD5 8db57741df801eb2129e48c851a7bd49
BLAKE2b-256 166d1e3a3fc28c78d38709fc7ecf41a6575af23c90982d8a987776d390abf25d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resql-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.5 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 adb1d47425890dab967dbe54c169830ef5d1a490987fa2bec32a6c8aca893d44
MD5 350580d28814a7c22189698f64774174
BLAKE2b-256 bbb13af7b113cc589a37d638671205b520d3b0c7b18631dc59cd114790879c5f

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