Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async def cursor(self, query: str, *args) -> AsyncGenerator[Record, None]:
"""Deprecated. Use ``iterate`` method instead"""
warnings.warn(
"'cursor' method is deprecated. Use 'iterate' method instead",
PendingDeprecationWarning,
)
async for row in self.iterate(query, *args):
yield row
def new(self, row: bytes) -> Record:
return Record(
row=row[:-1], # because of delimiter
names=self.names,
converters=self.converters,
)