def proceed(processable, mapping): scope = _Scope(_QueryPlan()) processor = processable.__processor__(scope) columns = scope.query_plan.query_columns(None) result = {0: [mapping[col] for col in columns]} return processor(result)
def columns_set(processable): scope = _Scope(_QueryPlan()) processable.__processor__(scope) return set(scope.query_plan.query_columns(None))