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
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
sqlitedave_package-1.0.1.tar.gz
(33.6 kB
view hashes)
Built Distribution
Close
Hashes for sqlitedave_package-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 631feb0bb69c619b5ad61cf20fad12b715eb3bf09b3dcfd7e92c6f3487257d39 |
|
MD5 | 078bb6796b927b3480f0bf1db4ba7896 |
|
BLAKE2b-256 | d3b9ccede0ff0c23063aac27399d8e66319508460f8b6be7fc0f31bfd7ead109 |