datasette-insert icon indicating copy to clipboard operation
datasette-insert copied to clipboard

feature request: expose inserted row ids

Open akhilpai opened this issue 10 months ago • 0 comments

Hello, thank you for the wonderful work!

When a table's primary key is generated by sqlite, it would be useful to return a reference to that id. For example, my use case is a web app where I would like to redirect a user after a form entry.

Exposing last_pk/last_rowid would be enough for single records I think, but it may be good to consider how to handle multiples.

akhilpai avatar Mar 28 '24 14:03 akhilpai