sqlite3py
Module sqlite3py provides you very easy smart requests for sqlite database.
Read on GitHub
Examples folder
Methods:
- set (Update (Set) values for selected row.)
- insert (Insert (Push) row.)
- all (Return all values.)
- get (Return values from selected row.)
- delete (Delete selected row.)
Example
'''After sqlite3py Version 2.0.0'''
from sqlite3py import Database
database = Database('./storage.db', check_same_thread = False)
files = database.table('files')
files.set('Documentation', {
'title': 'Documentation',
'description': 'Some description',
'type': 'pdf',
'uuid': 'a8098c1a-f86e-11da-bd1a-00112444be1e',
})
files.get('Documentation')[0]['description']
files.all()
Requirements Packages
- sqlite3 (Already set by default)