Skip to main content

python sqlite OOP class

Project description

sqlite oop

sqlite Object Oriented

from sqliteoop import sqlite
db = sqlite("./demo.db")

# create table
createtable = db.table("user_name").create_table({
    "id":"INTEGER PRIMARY KEY AUTOINCREMENT",
    "name":"VARCHAR(80) NOT NULL"
})
print(createtable)

# create datas
insert = db.table("user_name").insert([{"name": "davie"}, {"name": "johan"}])

# create data
insert = db.table("user_name").create({"name": "davie"})

# delete
db.table("user_name").where("id",1).delete()
db.table("user_name").where("name","davie").delete()

# update
db.table("user_name").where("name","davie").updata({"name":"lisa"})

# select
db.table("user_name").where("name","<>","davie").limit(5).select("*")

# find
db.table("user_name").where("name","johan").find("*")

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

sqlite-oop-0.0.3.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sqlite_oop-0.0.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file sqlite-oop-0.0.3.tar.gz.

File metadata

  • Download URL: sqlite-oop-0.0.3.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10

File hashes

Hashes for sqlite-oop-0.0.3.tar.gz
Algorithm Hash digest
SHA256 03669e4eda3bd96552a6af5abea91cc8c2244a3c0388895532e45afb3541a6f8
MD5 64054701e7205ac2063d8a3b8484cb62
BLAKE2b-256 37b5cd379730581126e24c56581830cfdef9581e399586dd30c5414937f39f25

See more details on using hashes here.

File details

Details for the file sqlite_oop-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: sqlite_oop-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10

File hashes

Hashes for sqlite_oop-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bc5d8f54f208f746bfd444c3e1af02d9de1740be26479ffbc3fcdc533a3aefcd
MD5 feacba4f35b13cc55aa77a47dc0905ef
BLAKE2b-256 3dd5b1531b833926700ccc38a64183ab14aba061de10fbfdb68d3b818ee53fb9

See more details on using hashes here.

Supported by

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