Sqlite helper module
Project description
SQLITECLOSEDHELPER
Description: This library helps you to manage your sqlite database easily without any query
How to install?
pip install sqliteclosedhelper
How to use ?
Creating a database file
from sqliteclosedhelper import *
db=DB("filename.db")
Creating a table
db.createTable(tablename="books",fields={"id":TEXT+PRIMARY,"name":TEXT,"price":INTEGER}) #creates a table if not created
Insert a field
db.insert(tablename="books",data={"id":"a1x","name":"Book1","price":100})
Updating a field
db.update(tablename="books",data={"price":120},where={"id":"a1x","name":"Book1"},whattype=AND)
Get a field
print(db.get(tablename="books",where={"name":"Book1","price":120},whattype=AND))
Delete a field
db.delete("books",where={"name":"Book1","price":120},whattype=AND)
Delete all field
db.deleteAll("books")
Get all field
print(db.getAll("books"))
Project details
Release history Release notifications | RSS feed
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 sqliteclosedhelper-1.0.3.tar.gz.
File metadata
- Download URL: sqliteclosedhelper-1.0.3.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d9cb5c8bd834265af971065d814338eec6be115acd27306b1f47134a1bccaf7
|
|
| MD5 |
f5eb4c27e028edea7861e676adadf102
|
|
| BLAKE2b-256 |
1ebaaa47ec30f0f9384813d51f3bd3c6589bcc7b8bbabd5c585ff809e72c743f
|
File details
Details for the file sqliteclosedhelper-1.0.3-py2-none-any.whl.
File metadata
- Download URL: sqliteclosedhelper-1.0.3-py2-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07c26dbf98c6a6b487900751b3fae933576a9e460db25f235345729280a5ec91
|
|
| MD5 |
6cbb36bfabc7689ca8bd5bc8e5d72af6
|
|
| BLAKE2b-256 |
a76553cc30d629da0cdaa4f814ab8dd67707f6cf2c3eb56e8431d97ca059ba06
|