Skip to main content

No project description provided

Project description

sqlfocus

Simple wrapper for sql

Example of usage (sqlite3)

import sqlite3

from sqlfocus import SQLTable

sql = (
    ("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=sql)


'SELECT * FROM test WHERE id = 23455 AND name = "None"'
table.selectall()
table.selectall(where=["id = 23455", 'name = "None"'])


'INSERT INTO test VALUES (23455, "None")'
table.insert(23455, "None")

conn.commit()

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

sqlfocus-0.1.0.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file sqlfocus-0.1.0.tar.gz.

File metadata

  • Download URL: sqlfocus-0.1.0.tar.gz
  • Upload date:
  • Size: 2.2 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

Hashes for sqlfocus-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d9fc2220af7ea91d6217730956b6a035a58713679e2c6f6c26bed09ea8717c3f
MD5 1b2649a9a9a1d58821d4f36330b6dc20
BLAKE2b-256 7ff2ec7157a550183b801c3e428ce158ab0c507854aab66b2191c5e47f46774f

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