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

Aazerra/CharonDb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()