AUTO_ZIP_COLS¶
-
GenericDBWrapper.AUTO_ZIP_COLS: bool = True¶ If your database API doesn’t support returning rows as dicts or a dict-like structure (e.g. sqlite3), then when this setting is enabled,
_zip_cols()will be called to zip each row with the result column names into a dictionary.If your database API supports returning rows as a dictionary either by default, or via a cursor/connection class (e.g. PostgreSQL with psycopg2) then you should set this to
Falseand use the cursor/connection class instead.