-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the param stream_results
#23
Comments
Does the current driver implementation of RowIterator represent a server-side cursor? If so, possible the dialect options |
@rad-pat Because the |
Actually, it looks like flag |
We prefer to have a |
Now we can already support server_side_cursors https://github.com/datafuselabs/databend-sqlalchemy/blob/main/databend_sqlalchemy/databend_dialect.py#L609 use this demo to replace stream_result. import connector
cursor = connector.connect('databend://root:@localhost:8000?sslmode=disable').cursor()
cursor.execute('SELECT * FROM test')
# print(cursor.fetchone())
# print(cursor.fetchall())
for row in cursor:
print(row) |
if
stream_results
= false, pool the rows data into cursor, else callnext
every time.Also fix #22
The text was updated successfully, but these errors were encountered: