python mysql OOP class
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
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
mysql-oop-0.0.5.tar.gz
(5.6 kB
view details)
Built Distribution
File details
Details for the file mysql-oop-0.0.5.tar.gz
.
File metadata
- Download URL: mysql-oop-0.0.5.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86d313302be737e311b4deb3ff9e280e361a233bcef71e7d2229c7d63a51232b |
|
MD5 | d45d9e9466d5a20bed719992561cef55 |
|
BLAKE2b-256 | 009b344bd22937ccd1f090110cd095ec31668b479c0d793ab8d5545a16bbbc15 |
File details
Details for the file mysql_oop-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: mysql_oop-0.0.5-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1dd3f7b55631d532ffcbd44c4e9a830d7662a88969950e05a91cff9197baa7bc |
|
MD5 | 5fffc2814b7b24935f0680de64d61ff4 |
|
BLAKE2b-256 | a6bc4b41bd2e031d6a38dff7989fcf0a87d294926bdb6d41f79a47ea1e07112e |