Skip to main content

A beginner friendly database

Project description

resql: Built 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

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: resql-0.1.2.tar.gz
  • Upload date:
  • Size: 5.5 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.2.tar.gz
Algorithm Hash digest
SHA256 16e2274ea28f0d3f038425e2fff86da0847fddd7a7295ded8a7bcde9e738caa4
MD5 a9aa00c7c3325adc944c41c87de79499
BLAKE2b-256 880a14fba13cf93dd18777357aaf8a2288f14d4e199ecab0bff90a018210c286

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resql-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 91e23687d35b1ded9a90d341acad3927d4cf5d6208a593a742dc29a3655a7524
MD5 edf59dad11626f883d89bc9b70bffd9f
BLAKE2b-256 55af15ef392fb80ab756c0079eb6994fe4efbfa9f855f3b6172ea87c12a3e9ef

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