Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Latest commit

 

History

History
25 lines (16 loc) · 543 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 543 Bytes

CharonDB

A package for working with databases with mullti drivers

Available Drivers

  • Mysql
  • Sqlite3

Example

from charondb import MySQLManager

storage = MySQLManager(username="username", password="password",
                       host="host", database="database name", port="port", debug=True)
with open("./database.sql", "r") as sql_file:
    storage.import_database(sql_file) # .sql file
storage.insert(<table_name>, [<cols>], [<values>])
storage.exists(<table_name>, <where query>):
storage.close()