(self, db_key, db_name=None)
return dsn, host, username, password, database, driver
Convenience method to extract info from instance
Convenience method to extract info from instance
Convenience method to extract info from instance
def _get_access_info(self, db_key, db_name=None):
        """Convenience method to extract info from instance"""
        dsn = self.instance.get('dsn')
        host = self.instance.get('host')
        username = self.instance.get('username')
        password = self.instance.get('password')
        database = self.instance.get(db_key) if db_name is None else db_name
        driver = self.instance.get('driver')
        if not dsn:
            if not host:
                host = '127.0.0.1,1433'
            if not database:
                database = self.DEFAULT_DATABASE
            if not driver:
                driver = self.DEFAULT_DRIVER
        return dsn, host, username, password, database, driver
def _get_access_info ( self , db_key , db_name = None ) : dsn = self . instance . get ( 'dsn' ) host = self . instance . get ( 'host' ) username = self . instance . get ( 'username' ) password = self . instance . get ( 'password' ) database = self . instance . get ( db_key ) if db_name is None else db_name driver = self . instance . get ( 'driver' ) if not dsn : if not host : host = '127.0.0.1,1433' if not database : database = self . DEFAULT_DATABASE if not driver : driver = self . DEFAULT_DRIVER return dsn , host , username , password , database , driver