issue_comments
11 rows where "created_at" is on date 2020-07-27 sorted by user
This data as json, CSV (advanced)
Suggested facets: issue_url, updated_at (date)
id | html_url | issue_url | node_id | user ▼ | created_at | updated_at | author_association | body | reactions | issue | performed_via_github_app |
---|---|---|---|---|---|---|---|---|---|---|---|
664062546 | https://github.com/simonw/sqlite-utils/issues/125#issuecomment-664062546 | https://api.github.com/repos/simonw/sqlite-utils/issues/125 | MDEyOklzc3VlQ29tbWVudDY2NDA2MjU0Ng== | simonw 9599 | 2020-07-27T00:33:03Z | 2020-07-27T00:33:03Z | OWNER | I'm going to imitate how Datasette solves this problem:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Output binary columns in "sqlite-utils query" JSON 665817570 | |
664065341 | https://github.com/simonw/sqlite-utils/issues/125#issuecomment-664065341 | https://api.github.com/repos/simonw/sqlite-utils/issues/125 | MDEyOklzc3VlQ29tbWVudDY2NDA2NTM0MQ== | simonw 9599 | 2020-07-27T00:49:41Z | 2020-07-27T00:49:41Z | OWNER | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Output binary columns in "sqlite-utils query" JSON 665817570 | ||
664065597 | https://github.com/simonw/sqlite-utils/issues/126#issuecomment-664065597 | https://api.github.com/repos/simonw/sqlite-utils/issues/126 | MDEyOklzc3VlQ29tbWVudDY2NDA2NTU5Nw== | simonw 9599 | 2020-07-27T00:51:11Z | 2020-07-27T00:51:11Z | OWNER | I'm going to implement this as the reverse of #125 - binary columns in JSON are now output like this:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Ability to insert binary data on the CLI using JSON 665819048 | |
664105302 | https://github.com/simonw/sqlite-utils/issues/124#issuecomment-664105302 | https://api.github.com/repos/simonw/sqlite-utils/issues/124 | MDEyOklzc3VlQ29tbWVudDY2NDEwNTMwMg== | simonw 9599 | 2020-07-27T03:54:24Z | 2020-07-30T22:57:51Z | OWNER |
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
sqlite-utils query should support named parameters 665802405 | |
664106405 | https://github.com/simonw/sqlite-utils/issues/126#issuecomment-664106405 | https://api.github.com/repos/simonw/sqlite-utils/issues/126 | MDEyOklzc3VlQ29tbWVudDY2NDEwNjQwNQ== | simonw 9599 | 2020-07-27T04:00:08Z | 2020-07-27T04:00:33Z | OWNER |
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Ability to insert binary data on the CLI using JSON 665819048 | |
664106621 | https://github.com/simonw/sqlite-utils/issues/114#issuecomment-664106621 | https://api.github.com/repos/simonw/sqlite-utils/issues/114 | MDEyOklzc3VlQ29tbWVudDY2NDEwNjYyMQ== | simonw 9599 | 2020-07-27T04:01:13Z | 2020-07-27T04:01:13Z | OWNER | Work in progress in |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
table.transform() method for advanced alter table 621989740 | |
664127741 | https://github.com/simonw/sqlite-utils/issues/122#issuecomment-664127741 | https://api.github.com/repos/simonw/sqlite-utils/issues/122 | MDEyOklzc3VlQ29tbWVudDY2NDEyNzc0MQ== | simonw 9599 | 2020-07-27T05:29:48Z | 2020-07-27T05:29:48Z | OWNER | Test command:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
CLI utility for inserting binary files into SQLite 665700495 | |
664128071 | https://github.com/simonw/sqlite-utils/issues/122#issuecomment-664128071 | https://api.github.com/repos/simonw/sqlite-utils/issues/122 | MDEyOklzc3VlQ29tbWVudDY2NDEyODA3MQ== | simonw 9599 | 2020-07-27T05:30:54Z | 2020-07-27T05:30:54Z | OWNER | Inserting files by piping them in should work - but since a filename cannot be derived this will need a
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
CLI utility for inserting binary files into SQLite 665700495 | |
664163206 | https://github.com/simonw/sqlite-utils/issues/127#issuecomment-664163206 | https://api.github.com/repos/simonw/sqlite-utils/issues/127 | MDEyOklzc3VlQ29tbWVudDY2NDE2MzIwNg== | simonw 9599 | 2020-07-27T07:10:05Z | 2020-07-27T07:10:05Z | OWNER | I tried to get this working but it was a bit tricky because |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Ability to insert files piped to insert-files stdin 666040390 | |
664163524 | https://github.com/simonw/sqlite-utils/issues/122#issuecomment-664163524 | https://api.github.com/repos/simonw/sqlite-utils/issues/122 | MDEyOklzc3VlQ29tbWVudDY2NDE2MzUyNA== | simonw 9599 | 2020-07-27T07:10:41Z | 2020-07-27T07:10:41Z | OWNER | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
CLI utility for inserting binary files into SQLite 665700495 | ||
664683608 | https://github.com/simonw/sqlite-utils/issues/128#issuecomment-664683608 | https://api.github.com/repos/simonw/sqlite-utils/issues/128 | MDEyOklzc3VlQ29tbWVudDY2NDY4MzYwOA== | simonw 9599 | 2020-07-27T23:09:22Z | 2020-07-27T23:09:22Z | OWNER | This seems to work, but needs more tests: ```diff diff --git a/sqlite_utils/db.py b/sqlite_utils/db.py index d6b9ecf..ee26433 100644 --- a/sqlite_utils/db.py +++ b/sqlite_utils/db.py @@ -7,6 +7,7 @@ import itertools import json import os import pathlib +import uuid SQLITE_MAX_VARS = 999 @@ -40,11 +41,13 @@ COLUMN_TYPE_MAPPING = { str: "TEXT", bytes.class: "BLOB", bytes: "BLOB", + memoryview: "BLOB", datetime.datetime: "TEXT", datetime.date: "TEXT", datetime.time: "TEXT", decimal.Decimal: "FLOAT", None.class: "TEXT", + uuid.UUID: "TEXT", # SQLite explicit types "TEXT": "TEXT", "INTEGER": "INTEGER", @@ -1336,6 +1339,8 @@ def jsonify_if_needed(value): return json.dumps(value, default=repr) elif isinstance(value, (datetime.time, datetime.date, datetime.datetime)): return value.isoformat() + elif isinstance(value, uuid.UUID): + return str(value) else: return value ``` |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Support UUID and memoryview types 666639051 |
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]);
issue 7