Helper funcs and tools for working with SQL in mysql or postgresql
Project description
About
This is meant to be a simple way to explore a postgresql/mysql database and get data out (super light wrapper to SQLAlchemy).
Connect with DB url in the following formats:
postgresql://someuser:somepassword@somehost/somedatabase
mysql://someuser:somepassword@somehost/somedatabase
Note: This package uses pymysql driver for connecting to mysql. Urls that start with mysql:// will automatically be changed to use mysql+pymysql://.
Install
$ pip3 install sql-helper
Usage
In [1]: from sql_helper import SQL In [2]: sql = SQL('postgresql://someuser:somepassword@somehost/somedatabase') In [3]: table_names = sql.get_tables() In [4]: results = sql.execute('SELECT ...')
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for sql_helper-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7a361f441348c9b00568205d609b96301351cd9b03991f764d0cf0ecf3202bf |
|
MD5 | 5bd031ddd473853c2cba6efcdc15e68f |
|
BLAKE2b-256 | 0d670c1be7ab6cde2bbf8fc6fa51cd88745d5fff0a747fcc6e679ae3e9f83d23 |