Skip to main content

python mysql OOP class

Reason this release was yanked:

Error

Project description

mysql 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

mysql-oop-0.0.3.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

mysql_oop-0.0.3-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mysql-oop-0.0.3.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.5 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.2

File hashes

Hashes for mysql-oop-0.0.3.tar.gz
Algorithm Hash digest
SHA256 01ee0de358033e912d7c60a9df2fc1fe3072688e260737aa63c810c47d97ac8c
MD5 36bfc6181cd1031b412000757e645bc9
BLAKE2b-256 de000d281eb3f155ae3ef227da0da444a5caebad86cfa49a48280675dbbc6c19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mysql_oop-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.5 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.2

File hashes

Hashes for mysql_oop-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 62b956af6110f2c9b7989997ab5801ff7012b8efaccf76ecc52c34ec92adb487
MD5 e33f5931beab962e5ea25628b7926b51
BLAKE2b-256 b74dee677229fddecf2d012f047f9b9d082e8b7657ee18d289b3ac97136d5404

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