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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file resql-0.1.5.tar.gz.
File metadata
- Download URL: resql-0.1.5.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0b5f1b25cf5f885cec79a5d3c17b2ab34cace674991f9cbf56a1a1c52d04b3a
|
|
| MD5 |
c04b47e86df39294ef3a3868bbc5750c
|
|
| BLAKE2b-256 |
f798a606ccf97fc6bd13e83c31f4ead475e42167a0218f268d779ea41312b252
|
File details
Details for the file resql-0.1.5-py3-none-any.whl.
File metadata
- Download URL: resql-0.1.5-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e2de7e9e312043c1ffb02921b63d8904c1bf8b54100ce78217e81a118a9a45c
|
|
| MD5 |
97a72d2f47625a5cf2f2f0a0987fe663
|
|
| BLAKE2b-256 |
90797f6d7e69d63086593e8467af056091e240cc1e145c8a42d083f27314b683
|