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-2.0.0.tar.gz
(35.3 kB
view hashes)
Built Distribution
Close
Hashes for sqlitedave_package-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c30ea81f9c3ee8a04e951b3319b576db7e0d036e4a5f399d6c3704dacd2a155 |
|
MD5 | eab16e17eb58df34bfe37f35fc63b9dc |
|
BLAKE2b-256 | c80d4bfa3252f566f582c0a637362846b29b40ea963320cbefede5d25c7de1bd |