Skip to main content

A wrapper for simplified sqlite usage using sqlite3.

Project description

SQLiteDave - A wrapper for simplified sqlite usage using sqlite3.

usage - load_csv_to_table

''' mydb = sqlite_db() mydb.connect() print(mydb.queryone('SELECT CURRENT_DATE')) mydb.close()

'''

usage - load_csv_to_table

''' mydb = sqlite_db() mydb.connect() print(mydb.dbstr()) csvfilename = 'Station.tsv' tblname = 'Station' mydb.load_csv_to_table(csvfilename,tblname,True,'\t') mydb.close() '''

usage - export_table_to_csv

''' mydb = sqlite_db() mydb.connect() print(mydb.dbstr()) csvfilename = 'Station.tsv' tblname = 'Station' mydb.export_table_to_csv(csvfilename,tblname) mydb.close()

'''

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

sqlitedave_package-2.0.1.tar.gz (35.8 kB view hashes)

Uploaded Source

Built Distribution

sqlitedave_package-2.0.1-py3-none-any.whl (22.3 kB view hashes)

Uploaded Python 3

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