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.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 2

File details

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

File metadata

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

Hashes for sqliteclosedhelper-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9d2357d4f7f792c7064637061f6f2418dba0bffab3426a6086789cdcb9d891a6
MD5 fb262d44309c0d4a9e2218d3944ae0e6
BLAKE2b-256 dfdf4508a632cd6f14e87c648351d22c774367fd2aff1eb26da56089a687f9c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sqliteclosedhelper-1.0.1-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.1-py2-none-any.whl
Algorithm Hash digest
SHA256 b96e8fb883db52a6e795860f6d4c47d36dc82a51ac7e3e16477e593daa819899
MD5 574d3e661eac64ec8819fed59db9fbea
BLAKE2b-256 8f2b947cf07f9a57791d1a04ec0b5bf5033911e0b0e5ddf9cda155acbe3e1eb2

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