issue_comments
5 rows where author_association = "OWNER" and issue = 1843391585 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- Add writable canned query demo to latest.datasette.io · 5 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | issue | performed_via_github_app |
---|---|---|---|---|---|---|---|---|---|---|---|
1672384439 | https://github.com/simonw/datasette/issues/2134#issuecomment-1672384439 | https://api.github.com/repos/simonw/datasette/issues/2134 | IC_kwDOBm6k_c5jro-3 | simonw 9599 | 2023-08-10T01:05:56Z | 2023-08-10T01:22:46Z | OWNER | Now live at https://latest.datasette.io/counters |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Add writable canned query demo to latest.datasette.io 1843391585 | |
1671581610 | https://github.com/simonw/datasette/issues/2134#issuecomment-1671581610 | https://api.github.com/repos/simonw/datasette/issues/2134 | IC_kwDOBm6k_c5jok-q | simonw 9599 | 2023-08-09T15:01:14Z | 2023-08-10T00:19:56Z | OWNER | Or... how about if the |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Add writable canned query demo to latest.datasette.io 1843391585 | |
1671526372 | https://github.com/simonw/datasette/issues/2134#issuecomment-1671526372 | https://api.github.com/repos/simonw/datasette/issues/2134 | IC_kwDOBm6k_c5joXfk | simonw 9599 | 2023-08-09T14:39:54Z | 2023-08-09T14:39:54Z | OWNER | Alternatively, what about if there was a custom SQL function available during canned write queries for setting the output message? Then the fact that canned queries don't return a table view wouldn't be a problem. Bit weird though. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Add writable canned query demo to latest.datasette.io 1843391585 | |
1671503163 | https://github.com/simonw/datasette/issues/2134#issuecomment-1671503163 | https://api.github.com/repos/simonw/datasette/issues/2134 | IC_kwDOBm6k_c5joR07 | simonw 9599 | 2023-08-09T14:32:30Z | 2023-08-09T14:32:30Z | OWNER | Annoying thing about this plugin is that you don't see the new counter value when you submit the increment or decrement query. Maybe canned queries should support SQL multiple statements? Could return the result of the last one. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Add writable canned query demo to latest.datasette.io 1843391585 | |
1671500965 | https://github.com/simonw/datasette/issues/2134#issuecomment-1671500965 | https://api.github.com/repos/simonw/datasette/issues/2134 | IC_kwDOBm6k_c5joRSl | simonw 9599 | 2023-08-09T14:31:43Z | 2023-08-09T14:31:43Z | OWNER | Here's a simple plugin that can do this: ```python from datasette import hookimpl @hookimpl def startup(datasette): db = datasette.add_memory_database("counters")
@hookimpl def canned_queries(database): if database == "counters": return { "increment": { "sql": "update counters set value = value + 1 where name = 'counter'", "write": True, }, "decrement": { "sql": "update counters set value = value - 1 where name = 'counter'", "write": True, }, } ``` |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Add writable canned query demo to latest.datasette.io 1843391585 |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE [issue_comments] ( [html_url] TEXT, [issue_url] TEXT, [id] INTEGER PRIMARY KEY, [node_id] TEXT, [user] INTEGER REFERENCES [users]([id]), [created_at] TEXT, [updated_at] TEXT, [author_association] TEXT, [body] TEXT, [reactions] TEXT, [issue] INTEGER REFERENCES [issues]([id]) , [performed_via_github_app] TEXT); CREATE INDEX [idx_issue_comments_issue] ON [issue_comments] ([issue]); CREATE INDEX [idx_issue_comments_user] ON [issue_comments] ([user]);
user 1