def _pragma_cursor(cursor):

    if cursor.closed:
        cursor.fetchone = lambda: None
        cursor.fetchall = lambda: []
    return cursor
work around SQLite issue whereby cursor.description
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/sqlalchemy/dialects/sqlite/base.py/_pragma_cursor