query_mode_cursor¶
-
PostgresQueryBuilder.query_mode_cursor(query_mode: privex.db.query.base.QueryMode, replace_cursor=True, cursor_mgr=True)[source]¶ Return a cursor object with the cursor class based on the
query_mode, using the query_mode to cursor class map in_cursor_map- Parameters
query_mode (QueryMode) – The QueryMode to obtain a cursor for
replace_cursor (bool) – (Default:
True) If True, replace the shared instance_cursorwith this new cursor.cursor_mgr (bool) – Wrap the cursor object in
CursorManager
- Returns