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.1.tar.gz
(35.8 kB
view hashes)
Built Distribution
Close
Hashes for sqlitedave_package-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09d022703883c817a67e60c398122cc0521d55555a66354414a02fbf349080b7 |
|
MD5 | a76fcf0109f55e091996f9bad3cfc2e1 |
|
BLAKE2b-256 | c573602257d4833e76e2b17f2fe00d20800918ebf3a027ec2cf32909e865feb1 |