Skip to main content

('Module sqlite3py provides you smart requests for sqlite database', 'By Xpos587')

Project description

sqlite3py

Module sqlite3py provides you smart requests for sqlite database.

Requirements Packages

  • sqlite3 (Already set by default)

Example

from sqlite3py import Database

database = Database()

database.createTable('people', 'name TEXT NOT NULL, age INTEGER NOT NULL')

database.insert('people', 'name, age', '"Jhon", 24')

print(*database.get('people', '*'))

Example

from sqlite3py import Database

database = Database()

database.createTable('people', 'name TEXT NOT NULL, age INTEGER NOT NULL')

database.insert('people', 'name, age', '"Jhon", 24')
database.insert('people', 'name, age', '"Michail", 19')

print(*database.get('people', '*'))

database.set('people', 'age = 20', 'WHERE name = "Michail"')

print(*database.get('people', '*'))

database.delete('people', 'WHERE name = "Jhon"')

print(*database.get('people', '*'))

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

sqlite3py-1.0.1.tar.gz (3.5 kB view hashes)

Uploaded Source

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