A lightweight db tools for sql
Project description
dbtool
A lightweight db tools for sql.
# sql
db.query_one(sql)
db.query_all(sql)
db.query_count(sql)
db.query_cursor(sql)
db.execute(sql)
db.executemany(sql)
db.executescript(sql)
db.executescript_file(sql)
# crud
db.insert(dict, table='user')
db.update(dict, table='user', id_name='id')
db.delete_by_id(1, table='user', id_name='id')
db.find_by_id(1, table='user', id_name='id')
db.increment()
db.find_one('user', id=1)
db.find('user', type=0)
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
dbtool-0.0.1.tar.gz
(2.9 kB
view hashes)
Built Distribution
dbtool-0.0.1-py3-none-any.whl
(3.8 kB
view hashes)