Run MySQL, PostgresSQL, SQLite queries with just one line in python. The Ultimate SQL Library.
Project description
🤐 What is Quick SQL Connector ?
-
🖇 Saves upto 80% of code lines as compared to other libraries.
-
😃 Gives you simple interface to execute mysql commands easily.
💽 Pre-requisites & Installation
-
MySQLServer and MySQL Command-Line Client should be installed on your machine.
😋USING PIP
pip install quicksqlconnector
😈FOR LINUX FRIENDS
python3 pip install quicksqlconnector
🙄How to use?
Use 'quicksqlconnector' keyword to import
from quicksqlconnector import quicksqlconnector
Creating instance of module
DB = quicksqlconnector('host', port, 'username', 'password', 'database-name:optional')
quicksqlconnector only have one method which is 'query'
It has two arguments, query and parameters.
Some Examples
pass your 'mysql commnad' as a 'string' in 'query' method to execute query.
DB.query("SELECT * FROM test where id= %s", (input_user,))
DB.query("SELECT * FROM test")
DB.query('CREATE TABLE test(name varchar(10), id int(10))')
DB.query("INSERT INTO test values(%s, %s)", ('harry', 13))
What's coming?
- It will soon support other SQL databases including: Microsoft SQL server, SQL Lite, Postgres SQL etc.
🔗Useful Links
PyPi - Visit Here
Website - Visit Here
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
quicksqlconnector-1.5.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for quicksqlconnector-1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a80d54c27fac8b08260d15fd367666e79df1e64c462d0ba83bb9aeaab9cfd700 |
|
MD5 | e3f5b20df6e423420053b0f7cb982038 |
|
BLAKE2b-256 | 776c3bba8d15c9b8fa9f0e936de68b66c4775fe96fb836297d0a3fd01638a5f7 |