Skip to main content

A lightweight db tools for sql.

Project description

dbtool

A lightweight db tools for sql.

pip install dbtool
# sql
db.execute(sql, fetchone=False, return_cursor=False, executemany=False)
db.execute_fetchone(sql)
db.execute_count(sql)
db.execute_cursort(sql)
db.execute_many(sql)
db.execute_script(sql)
db.execute_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.find('user', type=0)
db.find_one('user', id=1)
db.find_count('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.2.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

dbtool-0.0.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file dbtool-0.0.2.tar.gz.

File metadata

  • Download URL: dbtool-0.0.2.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

File hashes

Hashes for dbtool-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2fe80e1f06d4492ddebeae48d962d31efe9a1dd001b9c9988f32ebc74860eac8
MD5 8e79b25879262b6a90de31f8ab525206
BLAKE2b-256 03e8f2f19bbff9ff723116c6120f0775cb0b3705667c3d9da4c0e1fff00a4ab0

See more details on using hashes here.

File details

Details for the file dbtool-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: dbtool-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

File hashes

Hashes for dbtool-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ffdf50535f75d82aecfe8efd95865464d0b0f5ca1f1cb6eff6aafee3e2f73086
MD5 77367dddc69ec7290ee3f606efe5bc50
BLAKE2b-256 172b70a1a3afa62c9aebeb2b84af76bbd6a4e595d9331d12aa1eee9c3cb91cf6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page