get_cursor¶
-
BaseQueryBuilder.
get_cursor
(cursor_name=None, cursor_class=None, *args, **kwargs)[source]¶ Create and return a new database cursor object.
It’s recommended to override this method if you’re inheriting from this class, as this Generic version of
get_cursor
does not make use ofcursor_name
norcursor_class
.- Parameters
- Return GenericCursor cursor
A cursor object which should implement at least the basic Python DB API Cursor functionality as specified in
GenericCursor
((PEP 249)