No project description provided
Project description
sqlfocus
Simple wrapper for sql
Example of usage (sqlite3)
import sqlite3
from sqlfocus import SQLTable
schema = (
("id", "INTEGER"),
("name", "TEXT")
)
conn = sqlite3.connect("test.db")
table = SQLTable("test", conn)
"CREATE TABLE IF NOT EXISTS test (id INTEGER, name TEXT);"
table.create(exists=True, schema=schema)
'SELECT * FROM test WHERE id = 23455 AND name = "None"'
table.select()
table.select(where=["id = 23455", 'name = "None"'])
'INSERT INTO test VALUES (23455, "None")'
table.insert(23455, "None")
conn.commit()
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
sqlfocus-0.1.4.tar.gz
(2.4 kB
view details)
File details
Details for the file sqlfocus-0.1.4.tar.gz
.
File metadata
- Download URL: sqlfocus-0.1.4.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.0 importlib_metadata/3.7.3 packaging/20.9 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 159e8befed9dfae3a2e4f1acd7033eb840e36b5db1474bfc4259ab891b51a0c0 |
|
MD5 | 99a6f85be7764260050c0f3ddd8e8cf3 |
|
BLAKE2b-256 | 03752cff31bc610f56a7e0f2f8e93aa0d96fa4d327f4438c957a25f25a584fce |