Skip to content

Commit b4c4995

Browse files
committed
stream
1 parent 6883ad4 commit b4c4995

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

alloydb/notebooks/embeddings_batch_processing.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,9 +594,9 @@
594594
"async def debug_sql(pool):\n",
595595
" # Check table schema\n",
596596
" async with pool.connect() as db_conn:\n",
597-
" result = await db_conn.execute(sqlalchemy.text(\"\"\"\n",
597+
" result = await db_conn.stream(sqlalchemy.text(\"\"\"\n",
598598
" select table_name, column_name, data_type, character_maximum_length, column_default, is_nullable\n",
599-
" from INFORMATION_SCHEMA.COLUMNS where table_name = '{table_name}' order by column_name;\"\"\")).fetchall()\n",
599+
" from INFORMATION_SCHEMA.COLUMNS where table_name = '{table_name}' order by column_name;\"\"\"))\n",
600600
" await db_conn.commit()\n",
601601
"\n",
602602
" for row in result:\n",

0 commit comments

Comments
 (0)