def cargar_djv_local():
    """
    Creates a Dejavu object pointing local MySql DB
    :return: Dejavu object
    """
    from dejavuCAPTOR import Dejavu
    _configLocal = {
        "database": {
            "host": "127.0.0.1",
            "user": "******",
            "passwd": "12345",
            "db": "captor",
            "use_unicode": True,
            "charset": 'utf8',
            "init_command": 'SET NAMES UTF8'
        },
        "database_type": "mysql"
    }
    return Dejavu(_configLocal)
def cargar_djv_infoadex():
    """
    Creates a Dejavu object pointing InfoAdex MySql DB
    :return: Dejavu object
    """
    from dejavuCAPTOR import Dejavu
    _configMySqlInfoAdex = {
        "database": {
            "host": "192.168.2.170",
            "user": "******",
            "passwd": "infoadex",
            "db": "captor",
            "use_unicode": True,
            "charset": 'utf8',
            "init_command": 'SET NAMES UTF8'
        },
        "database_type": "mysql"
    }
    return Dejavu(_configMySqlInfoAdex)