from framework.exceptions import NotSupportError


def gennerate_connection(driverName, **config):
    connection = ""
    if driverName == "mysql":
        connection = 'mysql+mysqlconnector://%s:%s@%s:%s/%s' % (config['user'],
                                                                config['password'],
                                                                config['url'],
                                                                config['port'],
                                                                config['db'])
    else:
        raise NotSupportError("we don not supprt other driver")
    return connection

0307e9161cf770c7cdcb3b3ea878a8dd2e489d7b
<mask token>

<mask token>


def gennerate_connection(driverName, **config):
    connection = ''
    if driverName == 'mysql':
        connection = 'mysql+mysqlconnector://%s:%s@%s:%s/%s' % (config[
            'user'], config['password'], config['url'], config['port'],
            config['db'])
    else:
        raise NotSupportError('we don not supprt other driver')
    return connection

from framework.exceptions import NotSupportError


def gennerate_connection(driverName, **config):
    connection = ''
    if driverName == 'mysql':
        connection = 'mysql+mysqlconnector://%s:%s@%s:%s/%s' % (config[
            'user'], config['password'], config['url'], config['port'],
            config['db'])
    else:
        raise NotSupportError('we don not supprt other driver')
    return connection

from framework.exceptions import NotSupportError


def gennerate_connection(driverName, **config):
    connection = ""
    if driverName == "mysql":
        connection = 'mysql+mysqlconnector://%s:%s@%s:%s/%s' % (config['user'],
                                                                config['password'],
                                                                config['url'],
                                                                config['port'],
                                                                config['db'])
    else:
        raise NotSupportError("we don not supprt other driver")
    return connection
