github
html_url | issue_url | id | node_id | user | created_at | updated_at | author_association | body | reactions | issue | performed_via_github_app |
---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/simonw/datasette/issues/2138#issuecomment-1672366410 | https://api.github.com/repos/simonw/datasette/issues/2138 | 1672366410 | IC_kwDOBm6k_c5jrklK | 9599 | 2023-08-10T00:39:16Z | 2023-08-10T00:39:16Z | OWNER | Here's what it looks like when it works: <img width="715" alt="image" src="https://github.com/simonw/datasette/assets/9599/a53efc81-8ceb-44a2-b083-2efb27d20cf7"> And here's what you get if there's a SQL error in the `on_success_message_sql` query itself: <img width="715" alt="CleanShot 2023-08-09 at 17 38 12@2x" src="https://github.com/simonw/datasette/assets/9599/e211cee2-3edb-475a-906d-b0bb5a118d77"> | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
1844213115 | |
https://github.com/simonw/datasette/issues/2138#issuecomment-1672353428 | https://api.github.com/repos/simonw/datasette/issues/2138 | 1672353428 | IC_kwDOBm6k_c5jrhaU | 9599 | 2023-08-10T00:20:56Z | 2023-08-10T00:20:56Z | OWNER | Goal here is to customize the message displayed after a query has succeeded. e.g. ```yaml databases: mydatabase: queries: add_name: sql: INSERT INTO names (name) VALUES (:name) write: true on_success_message_sql: 'select ''Name inserted: '' || :name' on_success_redirect: /mydatabase/names ``` | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
1844213115 |