-
-
Notifications
You must be signed in to change notification settings - Fork 123
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
The table.insert_all() and table.upsert_all() methods currently only work with iterators of dictionaries, where each dictionary represents a row and the column names are the keys.
This is inefficient over large number of rows.
How about if they could also accept iterators that look like this?
def rows():
yield "id", "title", "content"
for row in some_other_source():
yield row.id, row.title, row.contentThis looks similar to CSV. The first "row" is the column titles, subsequent rows are the row values themselves.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request