mirror of
https://github.com/simonw/datasette.git
synced 2026-11-26 20:09:37 +01:00
Insert multiple rows feature in the insert dialog
Works entirely using existing JSON API. User can paste in CSV, TSV or JSON (or drop a text file on). They get a preview of the rows to be imported, then they are imported in max_insert_rows batches.
This commit is contained in:
parent
d621bdfbfe
commit
b7a896a803
5 changed files with 1062 additions and 10 deletions
|
|
@ -1316,6 +1316,7 @@ async def test_table_insert_action_button_and_data():
|
|||
assert insert_data["path"] == "/data/items/-/insert"
|
||||
assert insert_data["tableName"] == "items"
|
||||
assert insert_data["primaryKeys"] == ["id"]
|
||||
assert insert_data["maxInsertRows"] == 100
|
||||
assert [column["name"] for column in insert_data["columns"]] == [
|
||||
"name",
|
||||
"score",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue