issue_comments
2 rows where "created_at" is on date 2019-02-23, issue = 413740684 and user = 9599 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- Detect numpy types when creating tables · 2 ✖
| id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | issue | performed_via_github_app |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 466695695 | https://github.com/simonw/sqlite-utils/issues/11#issuecomment-466695695 | https://api.github.com/repos/simonw/sqlite-utils/issues/11 | MDEyOklzc3VlQ29tbWVudDQ2NjY5NTY5NQ== | simonw 9599 | 2019-02-23T21:10:35Z | 2019-02-23T21:10:35Z | OWNER | Need to test this both with and without |
{
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
Detect numpy types when creating tables 413740684 | |
| 466695672 | https://github.com/simonw/sqlite-utils/issues/11#issuecomment-466695672 | https://api.github.com/repos/simonw/sqlite-utils/issues/11 | MDEyOklzc3VlQ29tbWVudDQ2NjY5NTY3Mg== | simonw 9599 | 2019-02-23T21:10:23Z | 2019-02-23T21:10:23Z | OWNER | Rough sketch: ``` +try: + import numpy +except ImportError: + numpy = None + Column = namedtuple( "Column", ("cid", "name", "type", "notnull", "default_value", "is_pk") ) @@ -70,6 +79,22 @@ class Database: datetime.time: "TEXT", None.class: "TEXT", } + # If numpy is available, add more types + if numpy: + col_type_mapping.update({ + numpy.int8: "INTEGER", + numpy.int16: "INTEGER", + numpy.int32: "INTEGER", + numpy.int64: "INTEGER", + numpy.uint8: "INTEGER", + numpy.uint16: "INTEGER", + numpy.uint32: "INTEGER", + numpy.uint64: "INTEGER", + numpy.float16: "FLOAT", + numpy.float32: "FLOAT", + numpy.float64: "FLOAT", + numpy.float128: "FLOAT", + }) ``` |
{
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
Detect numpy types when creating tables 413740684 |
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