@classmethod<EOL><INDENT>@coroutine<EOL>def get_cursor(cls, cursor_type=_CursorType.PLAIN) -> Cursor:<DEDENT>
_cur = None<EOL>if cls._use_pool:<EOL><INDENT>_connection_source = yield from cls.get_pool()<EOL><DEDENT>else:<EOL><INDENT>_connection_source = yield from aiopg.connect(echo=False, **cls._connection_params)<EOL><DEDENT>if cursor_type == _CursorType.PLAIN:<EOL><INDENT>_cur = yield from _connection_source.cursor()<EOL><DEDENT>if cursor_type == _CursorType.NAMEDTUPLE:<EOL><INDENT>_cur = yield from _connection_source.cursor(cursor_factory=psycopg2.extras.NamedTupleCursor)<EOL><DEDENT>if cursor_type == _CursorType.DICT:<EOL><INDENT>_cur = yield from _connection_source.cursor(cursor_factory=psycopg2.extras.DictCursor)<EOL><DEDENT>if not cls._use_pool:<EOL><INDENT>_cur = cursor_context_manager(_connection_source, _cur)<EOL><DEDENT>return _cur<EOL>
Yields:
    new client-side cursor from existing db connection pool