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.5.tar.gz
(5.9 kB
view hashes)
Built Distribution
resql-0.1.5-py3-none-any.whl
(3.6 kB
view hashes)