Skip to main content
Wrapper Class around Sqlite3

In Sqlite3 after connecting to the database, for every read execute statement the data needs to be fetched and for evey write execute statement the data needs to be committed. But this class eliminates these requirements and make it simple to read and write to the database.

Files:

palsql/__init__.py

Usage Examples:

import sqlite3

db = palsql.db(“db-filename”) ##-connect to the database

db.read(“sql statement”) ##-returns the read data from database with flat=True

db.read(“select item from table”, flat=False) ##-returns the raw read data

db.read(f”select item from table where item = {Variable}”) ##-read with string substitution

db.read1(“sql statement”) ##-returns the first read data similar to fetchone

db.write(“sql statement”) ##-writes the data and commits to the database

For other psycopg connection commands use the connection class

db.conn….

Metadata

Release files for palsql 1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for palsql 1.6
File Size Uploaded
palsql-1.6.tar.gz 1.6 kB Details

Release files / palsql-1.6.tar.gz

Download URL palsql-1.6.tar.gz
Size 1.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3f07f5183562ca1489633ffa9d353dd9543df3eedda8f803f664d2ab04ba1ad0
BLAKE2b-256 checksum
How to use checksums
8fbd7e34d69b063e3bd2c1faaf24fc1745ed14e94444247f7ef5402d461b443a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Release history Release notifications | RSS feed

This release

1.6 This release

1 release file

1.5

1 release file

1.4

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

1

1 release file

0.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page