A beginner friendly database
Project description
resql: Built for Beginners
Quick Examples
imports
pip install resql
import resql
database = resql.PyDatabase("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.0.tar.gz
(4.1 kB
view details)
Built Distribution
resql-0.1.0-py3-none-any.whl
(2.6 kB
view details)
File details
Details for the file resql-0.1.0.tar.gz
.
File metadata
- Download URL: resql-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.4 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47610cbf13b40b1117f1ff81fee3fc4d3be5f32fd365f343ea15b332cde7860e |
|
MD5 | d60ff4494dcd4f0965abe90dc8a0964d |
|
BLAKE2b-256 | c43626ced5c3063e9932ee3dbe69620b6c8f825553f66a4ac25be99fad5bf700 |
File details
Details for the file resql-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: resql-0.1.0-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c774f747aa4e473049d6679691149b397fabc3965c9f5fccfe8b98018e073e8f |
|
MD5 | 3ad936d36b6f2a7f4c278d82d4d8b5b9 |
|
BLAKE2b-256 | 5e7e040e8340de14684cba8d2ed430f3c7f64a5d4c43e6fcfc72c2f8c8222799 |