# Path: eloquent/connectors/connector.py
# class Connector(object):
# 
#     RESERVED_KEYWORDS = [
#         'log_queries', 'driver', 'prefix'
#     ]
# 
#     def get_api(self):
#         raise NotImplementedError()
# 
#     def get_config(self, config):
#         return {x: config[x] for x in config if x not in self.RESERVED_KEYWORDS}
# 
#     def connect(self, config):
#         return self.get_api().connect(**self.get_config(config))


    import MySQLdb as mysql
        import pymysql as mysql
    from MySQLdb.cursors import DictCursor as cursor_class
        from pymysql.cursors import DictCursor as cursor_class
from .connector import Connector
# -*- coding: utf-8 -*-

try:
    keys_fix = {
        'password': 'passwd',
        'database': 'db'
    }
except ImportError:
    try:
        keys_fix = {}
    except ImportError:
        mysql = None



class MySqlConnector(Connector):

    RESERVED_KEYWORDS = [
        'log_queries', 'driver', 'prefix',
        'engine', 'charset', 'collation'

# Path: eloquent/connectors/connector.py
# class Connector(object):
# 
#     RESERVED_KEYWORDS = [
#         'log_queries', 'driver', 'prefix'
#     ]
# 
#     def get_api(self):
#         raise NotImplementedError()
# 
#     def get_config(self, config):
#         return {x: config[x] for x in config if x not in self.RESERVED_KEYWORDS}
# 
#     def connect(self, config):
#         return self.get_api().connect(**self.get_config(config))


# Path: eloquent/connectors/mysql_connector.py
    import MySQLdb as mysql
        import pymysql as mysql
    from MySQLdb.cursors import DictCursor as cursor_class
        from pymysql.cursors import DictCursor as cursor_class
from .connector import Connector

# -*- coding: utf-8 -*-

try:
    keys_fix = {
        'password': 'passwd',
        'database': 'db'
    }
except ImportError:
    try:
        keys_fix = {}
    except ImportError:
        mysql = None



class MySqlConnector(Connector):

    RESERVED_KEYWORDS = [
        'log_queries', 'driver', 'prefix',
        'engine', 'charset', 'collation'

    ]