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.2.0.tar.gz
(34.0 kB
view hashes)
Built Distribution
Close
Hashes for sqlitedave_package-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3df363ee3a182213cd986143f1e2507c7f533c85e4f5e1bf035cb96c2b7f0b55 |
|
MD5 | 71e10764658d571728a12b906a32ce6c |
|
BLAKE2b-256 | 484920c65896612b7ebdeac728ba7c2d806211c41ee17827e42a2d456dda65fd |