def get_schema(self, txn, table):

        schema = []

        try:
            txn.execute("pragma table_info( '%s' );" % table)
        except Exception as e:
            logging.info("SqlConnections: Failed to get table_info for '%s'.", table)
            return schema

        for row in txn.fetchall():
            schema.append( [ str(row[1]), str(row[2]) ] )

        return schema
dataset/ETHPy150Open MediaMath/qasino/lib/sqlite_backend.py/SqlConnections.get_schema/original