Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqliteclosedhelper-1.0.2.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

sqliteclosedhelper-1.0.2-py2-none-any.whl (3.6 kB view details)

Uploaded Python 2

File details

Details for the file sqliteclosedhelper-1.0.2.tar.gz.

File metadata

  • Download URL: sqliteclosedhelper-1.0.2.tar.gz
  • Upload date:
  • Size: 3.0 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

Hashes for sqliteclosedhelper-1.0.2.tar.gz
Algorithm Hash digest
SHA256 31aa90f439ec6f946e050943eec08f35fd2868db5504c61d9c8a1ac3ba844a62
MD5 eb531df0a1d38b6de210a27df4b08146
BLAKE2b-256 c64633214a6922cf4f6cc52ec30ed4e044d181244594f35c2a8cbdfc1ef6c5cb

See more details on using hashes here.

File details

Details for the file sqliteclosedhelper-1.0.2-py2-none-any.whl.

File metadata

  • Download URL: sqliteclosedhelper-1.0.2-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

Hashes for sqliteclosedhelper-1.0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 c7ae41c6a63098d9435ada762b3aa0fc058f42d918a9df51340e6beb41bf623e
MD5 b49be9b03236328793f6426c88a48647
BLAKE2b-256 123b9aac876b1034462b2ad59ca2e5bf55c02ea7c73792a0c0368cf66af91ee0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page