Skip to main content

Make Database Managing easier!

Project description

DBManager.py

PyVersion

A library for Database Management that makes our development easier.

Compatibility

This module supports connections with MySQL, PostgreSQL, SQL Server and SQLite3.

Features

The module manage almost everything by itself, this means Opening/Closing connections, cursors and managing of Commits.
Some of its features are:

  • execute(sql): Executes either an SQL sentence or a .sql file. It also can return values from a SELECT.
  • select(table, columns, condition, order): This method will return a list of selected values or just a value if ResultSet turns out to be just one.
  • insert(table, values): Inserts values into a table by the folowwing syntax: insert("test", id=12, name="LeCuay", money=32.12).
  • update(table, condition, sets): Updates rows by the following syntax: update("test", "name like '%Cuai%'", name="LeCuay", id=1, money=122.53).
  • create_table(table, values): Creates a table with the params in values by the following syntax: create_table("test", id="INTEGER PRIMARY KEY", name="VARCHAR(255)".
  • create_database(dbname): Manage the creation of a Database and its Isolation levels.
  • callproc(name, params): Calls a stored procedure from the Database.

To-do List

  • Add compatibility with OracleDB.
  • Add compatibility with MongoDB.
  • Add more specific features for each Connection.

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

DBManager-0.1.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

DBManager-0.1.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file DBManager-0.1.1.tar.gz.

File metadata

  • Download URL: DBManager-0.1.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

File hashes

Hashes for DBManager-0.1.1.tar.gz
Algorithm Hash digest
SHA256 57578ff68ff6e3aa6c5e13ca22d2bf49f8e9aec29939dc9e467ab0c935a85274
MD5 a05ff842590098c168552ef1c3715b05
BLAKE2b-256 3d4d444b673db1a849fd5f46d5a290708d4412ca6b791af8a634afc50b4f81c9

See more details on using hashes here.

File details

Details for the file DBManager-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: DBManager-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

File hashes

Hashes for DBManager-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cca4ff495d6cd7470dd52bfd982303e4c7c2db8a2db060df1d771a5e491a9d5f
MD5 99d9b06bf9a380b3112333e361a577db
BLAKE2b-256 ff42774913a84c6e7e695ea0eab6d3ed038e0fdee499e4af838a76c81243c5d9

See more details on using hashes here.

Supported by

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