issue_comments
10 rows where issue = 449565204 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- Syntactic sugar for creating m2m records · 10 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | issue | performed_via_github_app |
---|---|---|---|---|---|---|---|---|---|---|---|
517971623 | https://github.com/simonw/sqlite-utils/issues/23#issuecomment-517971623 | https://api.github.com/repos/simonw/sqlite-utils/issues/23 | MDEyOklzc3VlQ29tbWVudDUxNzk3MTYyMw== | simonw 9599 | 2019-08-04T03:54:58Z | 2019-08-04T03:54:58Z | OWNER | Released in version 1.9. Documentation is here: https://sqlite-utils.readthedocs.io/en/stable/python-api.html#working-with-many-to-many-relationships |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Syntactic sugar for creating m2m records 449565204 | |
517927854 | https://github.com/simonw/sqlite-utils/issues/23#issuecomment-517927854 | https://api.github.com/repos/simonw/sqlite-utils/issues/23 | MDEyOklzc3VlQ29tbWVudDUxNzkyNzg1NA== | simonw 9599 | 2019-08-03T14:17:12Z | 2019-08-03T14:17:12Z | OWNER | It would be neat if this could interact with the lookup table mechanism introduced in #44 Maybe like this:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Syntactic sugar for creating m2m records 449565204 | |
507055345 | https://github.com/simonw/sqlite-utils/issues/23#issuecomment-507055345 | https://api.github.com/repos/simonw/sqlite-utils/issues/23 | MDEyOklzc3VlQ29tbWVudDUwNzA1NTM0NQ== | simonw 9599 | 2019-06-30T18:02:25Z | 2019-06-30T18:02:33Z | OWNER | I have a solution. If I introduce a |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Syntactic sugar for creating m2m records 449565204 | |
507053731 | https://github.com/simonw/sqlite-utils/issues/23#issuecomment-507053731 | https://api.github.com/repos/simonw/sqlite-utils/issues/23 | MDEyOklzc3VlQ29tbWVudDUwNzA1MzczMQ== | simonw 9599 | 2019-06-30T17:37:33Z | 2019-06-30T17:37:33Z | OWNER | Implementing the |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Syntactic sugar for creating m2m records 449565204 | |
507053558 | https://github.com/simonw/sqlite-utils/issues/23#issuecomment-507053558 | https://api.github.com/repos/simonw/sqlite-utils/issues/23 | MDEyOklzc3VlQ29tbWVudDUwNzA1MzU1OA== | simonw 9599 | 2019-06-30T17:34:29Z | 2019-06-30T17:34:29Z | OWNER | Or... how about we use chaining like this:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Syntactic sugar for creating m2m records 449565204 | |
507052051 | https://github.com/simonw/sqlite-utils/issues/23#issuecomment-507052051 | https://api.github.com/repos/simonw/sqlite-utils/issues/23 | MDEyOklzc3VlQ29tbWVudDUwNzA1MjA1MQ== | simonw 9599 | 2019-06-30T17:09:51Z | 2019-06-30T17:15:09Z | OWNER | Maybe there's a case where we want to be able to insert a row AND add its m2m records in a single operation? Could look something like this:
I'm not sure about this though. If the Maybe some complex nested function mechanism like this?
This would require having |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Syntactic sugar for creating m2m records 449565204 | |
507051825 | https://github.com/simonw/sqlite-utils/issues/23#issuecomment-507051825 | https://api.github.com/repos/simonw/sqlite-utils/issues/23 | MDEyOklzc3VlQ29tbWVudDUwNzA1MTgyNQ== | simonw 9599 | 2019-06-30T17:06:29Z | 2019-06-30T17:06:29Z | OWNER | For this method:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Syntactic sugar for creating m2m records 449565204 | |
507051516 | https://github.com/simonw/sqlite-utils/issues/23#issuecomment-507051516 | https://api.github.com/repos/simonw/sqlite-utils/issues/23 | MDEyOklzc3VlQ29tbWVudDUwNzA1MTUxNg== | simonw 9599 | 2019-06-30T17:01:26Z | 2019-06-30T17:03:16Z | OWNER | Question: do I set a compound primary key on I'm leaning towards compound primary key. Maybe that's the default and there's an option for including a regular incrementing primary key.
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Syntactic sugar for creating m2m records 449565204 | |
507051067 | https://github.com/simonw/sqlite-utils/issues/23#issuecomment-507051067 | https://api.github.com/repos/simonw/sqlite-utils/issues/23 | MDEyOklzc3VlQ29tbWVudDUwNzA1MTA2Nw== | simonw 9599 | 2019-06-30T16:54:08Z | 2019-06-30T16:59:05Z | OWNER | There could be a version of this which inserts the related record into the other table if it is missing, but reuses it if it's already there. That might look like this:
Since this is doing an |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Syntactic sugar for creating m2m records 449565204 | |
507050894 | https://github.com/simonw/sqlite-utils/issues/23#issuecomment-507050894 | https://api.github.com/repos/simonw/sqlite-utils/issues/23 | MDEyOklzc3VlQ29tbWVudDUwNzA1MDg5NA== | simonw 9599 | 2019-06-30T16:51:39Z | 2019-06-30T16:55:16Z | OWNER | One option:
This would create the missing m2m table if it did not already exist, and call it You can pass an optional
Maybe allow passing extra key/value pairs that will be inserted into the m2m table?
Could even accept It would be nice if there was a
It's a bit confusing them both having the same method name though. Also calling it Maybe this instead?
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Syntactic sugar for creating m2m records 449565204 |
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