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

Uploaded Source

Built Distribution

resql-0.1.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: resql-0.1.1.tar.gz
  • Upload date:
  • Size: 4.8 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.1.tar.gz
Algorithm Hash digest
SHA256 3500f58877221e8071f1d9722aacf8c376db2edaa72d6657e73f840a31d3eaf5
MD5 a2157d86a3344ea1bebc4a7cc75e7397
BLAKE2b-256 3768395040b23deaaa8d7fcae3f7ca9a94abffd3c6ddfb476a3e6fa805055c6d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resql-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 71a9bcf54804c3fd2dd854e2fc464f0d05149c2b05baef1dab32dc71534f66ee
MD5 8742972ee77c23d7ce8ef525ade1195d
BLAKE2b-256 c996fa22c2abe4a937b149680238171f1a4d27ddc74fae33526fcf284ba6dd5a

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