home / github

Menu
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

5 rows where issue = 1425011030

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

id ▼ html_url issue_url node_id user created_at updated_at author_association body reactions issue performed_via_github_app
1293857306 https://github.com/simonw/datasette/issues/1862#issuecomment-1293857306 https://api.github.com/repos/simonw/datasette/issues/1862 IC_kwDOBm6k_c5NHrIa simonw 9599 2022-10-27T17:38:17Z 2022-10-27T17:38:17Z OWNER Strongly related to: - #1866 {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Create a new table from one or more records, `sqlite-utils` style 1425011030  
1299073433 https://github.com/simonw/datasette/issues/1862#issuecomment-1299073433 https://api.github.com/repos/simonw/datasette/issues/1862 IC_kwDOBm6k_c5NbkmZ simonw 9599 2022-11-01T20:04:31Z 2022-11-01T20:04:31Z OWNER It really feels like this should be accompanied by a `/db/-/create` API for creating tables. I had to add that to `sqlite-utils` eventually (initially it only supported creating by passing in an example document): https://sqlite-utils.datasette.io/en/stable/cli.html#cli-create-table {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Create a new table from one or more records, `sqlite-utils` style 1425011030  
1302817500 https://github.com/simonw/datasette/issues/1862#issuecomment-1302817500 https://api.github.com/repos/simonw/datasette/issues/1862 IC_kwDOBm6k_c5Np2rc simonw 9599 2022-11-04T00:22:31Z 2022-11-04T00:22:31Z OWNER Maybe this is a feature added to the existing `/db/table/-/insert` endpoint? Bit weird that you can call that endpoint for a table that doesn't exist yet, but it fits the `sqlite-utils` way of creating tables which I've found very pleasant over the past few years. So perhaps the API looks like this: ``` POST /<database>/<table>/-/insert Content-Type: application/json Authorization: Bearer dstok_<rest-of-token> { "create_table": true, "rows": [ { "column1": "value1", "column2": "value2" }, { "column1": "value3", "column2": "value4" } ] } ``` The `create_table` option will cause the table to be created if it doesn't already exist. That means I probably also need a `"pk": "..."` column for setting a primary key if the table is being created ... and maybe other options that I invent for this other feature too? - #1882 {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Create a new table from one or more records, `sqlite-utils` style 1425011030  
1302817807 https://github.com/simonw/datasette/issues/1862#issuecomment-1302817807 https://api.github.com/repos/simonw/datasette/issues/1862 IC_kwDOBm6k_c5Np2wP simonw 9599 2022-11-04T00:23:13Z 2022-11-04T00:23:13Z OWNER I don't like this on `/db/table/-/insert` - I think it makes more sense to optionally pass a `"rows"` key to the `/db/-/create` endpoint instead. {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Create a new table from one or more records, `sqlite-utils` style 1425011030  
1314845667 https://github.com/simonw/datasette/issues/1862#issuecomment-1314845667 https://api.github.com/repos/simonw/datasette/issues/1862 IC_kwDOBm6k_c5OXvPj simonw 9599 2022-11-15T06:42:09Z 2022-11-15T06:42:32Z OWNER I implemented this as part of `/db/-/create`. https://docs.datasette.io/en/1.0-dev/json_api.html#creating-a-table-from-example-data {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Create a new table from one or more records, `sqlite-utils` style 1425011030  

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

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]);
Powered by Datasette · Queries took 21.838ms · About: simonw/datasette-graphql