Skip to content

kianbomba/QueryDriverPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python MYSQL-CONNECTION WRAPPER

This is just a small wrapper of mysql-connector that help to perform magic on the database easily

Hope you like it :D

usage

from Core.Connection import Connection

#
#
#
#
#
#
cnx = Connection("/path/to/db.config.json", True)

sql = "SELECT * FROM `HelloWorld`"
result = cnx.fetchall(sql)

for row in result:
    for field_name in row:
        print(row[field_name])

author Kianbomba

About

A wrapper of python mysql connector

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages