issue_comments
19 rows where "created_at" is on date 2021-12-11 sorted by issue
This data as json, CSV (advanced)
Suggested facets: issue_url, reactions, updated_at (date)
id | html_url | issue_url | node_id | user | created_at | updated_at | author_association | body | reactions | issue ▼ | performed_via_github_app |
---|---|---|---|---|---|---|---|---|---|---|---|
991755013 | https://github.com/simonw/datasette/issues/617#issuecomment-991755013 | https://api.github.com/repos/simonw/datasette/issues/617 | IC_kwDOBm6k_c47HPsF | simonw 9599 | 2021-12-11T19:17:11Z | 2021-12-11T19:17:11Z | OWNER | This work is now happening in #1518 |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Refactor TableView.data() method 519613116 | |
991397907 | https://github.com/simonw/sqlite-utils/pull/347#issuecomment-991397907 | https://api.github.com/repos/simonw/sqlite-utils/issues/347 | IC_kwDOCGYnMM47F4gT | simonw 9599 | 2021-12-11T01:01:40Z | 2021-12-11T01:01:40Z | OWNER | The change I made to that test in #354 might help with this. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Test against pysqlite3 running SQLite 3.37 1066603133 | |
991399782 | https://github.com/simonw/sqlite-utils/issues/353#issuecomment-991399782 | https://api.github.com/repos/simonw/sqlite-utils/issues/353 | IC_kwDOCGYnMM47F49m | simonw 9599 | 2021-12-11T01:09:37Z | 2021-12-11T01:09:37Z | OWNER | OK, this is implemented. Updated documentation is here: https://sqlite-utils.datasette.io/en/latest/cli.html#converting-data-in-columns |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Allow passing a file of code to "sqlite-utils convert" 1077102934 | |
991400016 | https://github.com/simonw/sqlite-utils/issues/353#issuecomment-991400016 | https://api.github.com/repos/simonw/sqlite-utils/issues/353 | IC_kwDOCGYnMM47F5BQ | simonw 9599 | 2021-12-11T01:10:52Z | 2021-12-11T01:11:02Z | OWNER | This won't be in a release for a little while, but you can install it to try it out using:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Allow passing a file of code to "sqlite-utils convert" 1077102934 | |
991405755 | https://github.com/simonw/sqlite-utils/issues/353#issuecomment-991405755 | https://api.github.com/repos/simonw/sqlite-utils/issues/353 | IC_kwDOCGYnMM47F6a7 | fgregg 536941 | 2021-12-11T01:38:29Z | 2021-12-11T01:38:29Z | CONTRIBUTOR | wow! that's awesome! thanks so much, @simonw! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Allow passing a file of code to "sqlite-utils convert" 1077102934 | |
991395919 | https://github.com/simonw/sqlite-utils/issues/354#issuecomment-991395919 | https://api.github.com/repos/simonw/sqlite-utils/issues/354 | IC_kwDOCGYnMM47F4BP | simonw 9599 | 2021-12-11T00:52:31Z | 2021-12-11T00:52:31Z | OWNER | It turns out |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Test failure in test_rebuild_fts 1077243232 | |
991398367 | https://github.com/simonw/sqlite-utils/issues/354#issuecomment-991398367 | https://api.github.com/repos/simonw/sqlite-utils/issues/354 | IC_kwDOCGYnMM47F4nf | simonw 9599 | 2021-12-11T01:03:14Z | 2021-12-11T01:03:14Z | OWNER | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Test failure in test_rebuild_fts 1077243232 | ||
991399604 | https://github.com/simonw/sqlite-utils/issues/354#issuecomment-991399604 | https://api.github.com/repos/simonw/sqlite-utils/issues/354 | IC_kwDOCGYnMM47F460 | simonw 9599 | 2021-12-11T01:08:46Z | 2021-12-11T01:08:46Z | OWNER | That passed! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Test failure in test_rebuild_fts 1077243232 | |
991386841 | https://github.com/simonw/sqlite-utils/issues/355#issuecomment-991386841 | https://api.github.com/repos/simonw/sqlite-utils/issues/355 | IC_kwDOCGYnMM47F1zZ | simonw 9599 | 2021-12-11T00:14:11Z | 2021-12-11T00:15:15Z | OWNER | Relevant code: https://github.com/simonw/sqlite-utils/blob/7a43af232e4bc00bd227307665163614e225948b/sqlite_utils/cli.py#L2128-L2135 One way to implement this would be to look to see if the code starts with |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Allow users to pass a full convert() function definition 1077322009 | |
991387044 | https://github.com/simonw/sqlite-utils/issues/355#issuecomment-991387044 | https://api.github.com/repos/simonw/sqlite-utils/issues/355 | IC_kwDOCGYnMM47F12k | simonw 9599 | 2021-12-11T00:14:45Z | 2021-12-11T00:14:45Z | OWNER | Maybe attempt to compile their code, and if it fails try again after adding |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Allow users to pass a full convert() function definition 1077322009 | |
991393684 | https://github.com/simonw/sqlite-utils/issues/355#issuecomment-991393684 | https://api.github.com/repos/simonw/sqlite-utils/issues/355 | IC_kwDOCGYnMM47F3eU | simonw 9599 | 2021-12-11T00:42:19Z | 2021-12-11T00:49:49Z | OWNER | Ideally I'd like to show the perfect syntax error messages to the user - but I don't know if it's possible to do this cleanly because the error might occur with their originally entered code OR it might occur after I add I'm going to punt on that for the moment and tolerate slightly confusing syntax errors. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Allow users to pass a full convert() function definition 1077322009 | |
991395494 | https://github.com/simonw/sqlite-utils/issues/355#issuecomment-991395494 | https://api.github.com/repos/simonw/sqlite-utils/issues/355 | IC_kwDOCGYnMM47F36m | simonw 9599 | 2021-12-11T00:50:22Z | 2021-12-11T00:51:15Z | OWNER | Here's an example of the new (slightly confusing) error message:
```bash
sqlite-utils convert fixtures.db roadside_attractions name '
def foo(value)
invalid syntax
invalid syntax ``` |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Allow users to pass a full convert() function definition 1077322009 | |
991517209 | https://github.com/simonw/sqlite-utils/issues/356#issuecomment-991517209 | https://api.github.com/repos/simonw/sqlite-utils/issues/356 | IC_kwDOCGYnMM47GVoZ | simonw 9599 | 2021-12-11T07:46:41Z | 2021-12-11T07:46:41Z | OWNER | By default this will accept single lines, but maybe there could be a |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
`sqlite-utils insert --convert` option 1077431957 | |
991752486 | https://github.com/simonw/datasette/issues/1549#issuecomment-991752486 | https://api.github.com/repos/simonw/datasette/issues/1549 | IC_kwDOBm6k_c47HPEm | simonw 9599 | 2021-12-11T19:09:15Z | 2021-12-11T19:09:15Z | OWNER | That's what this option does: The usability of this is pretty terrible though (including "stream all rows" - how are people meant to understand what that does?) so it can definitely do with some rethinking. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Redesign CSV export to improve usability 1077620955 | |
991754237 | https://github.com/simonw/datasette/issues/1549#issuecomment-991754237 | https://api.github.com/repos/simonw/datasette/issues/1549 | IC_kwDOBm6k_c47HPf9 | fgregg 536941 | 2021-12-11T19:14:39Z | 2021-12-11T19:14:39Z | CONTRIBUTOR | that option is not available on custom queries. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Redesign CSV export to improve usability 1077620955 | |
991754794 | https://github.com/simonw/datasette/issues/1549#issuecomment-991754794 | https://api.github.com/repos/simonw/datasette/issues/1549 | IC_kwDOBm6k_c47HPoq | simonw 9599 | 2021-12-11T19:16:33Z | 2021-12-11T19:16:33Z | OWNER | Good call! I'm doing a refactor #1518 right now which will hopefully bring the functionality of those two much closer - I'll make a note to consider this there too. |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Redesign CSV export to improve usability 1077620955 | |
991755245 | https://github.com/simonw/datasette/issues/1549#issuecomment-991755245 | https://api.github.com/repos/simonw/datasette/issues/1549 | IC_kwDOBm6k_c47HPvt | simonw 9599 | 2021-12-11T19:17:54Z | 2021-12-11T19:17:54Z | OWNER | Also relevant: - #1062 |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Redesign CSV export to improve usability 1077620955 | |
991761635 | https://github.com/simonw/datasette/issues/1550#issuecomment-991761635 | https://api.github.com/repos/simonw/datasette/issues/1550 | IC_kwDOBm6k_c47HRTj | simonw 9599 | 2021-12-11T19:39:01Z | 2021-12-11T19:39:01Z | OWNER | I wonder if this could work for public instances too with some kind of queuing mechanism? I really need to use benchmarking to figure out what the right number of maximum SQLite connections is. I'm just guessing at the moment. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Research option for returning all rows from arbitrary query 1077628073 | |
991805516 | https://github.com/simonw/datasette/issues/1550#issuecomment-991805516 | https://api.github.com/repos/simonw/datasette/issues/1550 | IC_kwDOBm6k_c47HcBM | simonw 9599 | 2021-12-11T23:43:24Z | 2021-12-11T23:43:24Z | OWNER | I built a tiny Starlette app to experiment with this a bit: ```python import asyncio import janus from starlette.applications import Starlette from starlette.responses import JSONResponse, HTMLResponse, StreamingResponse from starlette.routing import Route import sqlite3 from concurrent import futures executor = futures.ThreadPoolExecutor(max_workers=10) async def homepage(request): return HTMLResponse( """ <html> <head><title>SQL CSV Server</title> <style>body { width: 40rem; font-family: helvetica; margin: 2em auto; }</style> <body> SQL CSV Server<form action="/csv"> <label style="display: block">SQL query: <textarea style="width: 90%; height: 20em" name="sql"></textarea> </label> </form> </head> """ )def run_query_in_thread(sql, sync_q): db = sqlite3.connect("../datasette/covid.db") cursor = db.cursor() cursor.arraysize = 100 # Default is 1 apparently? cursor.execute(sql) columns = [d[0] for d in cursor.description] sync_q.put([columns]) # Now start putting batches of rows while True: rows = cursor.fetchmany() if rows: sync_q.put(rows) else: break # Let queue know we are finished\ sync_q.put(None) async def csv_query(request): sql = request.query_params["sql"]
app = Starlette(
debug=True,
routes=[
Route("/", homepage),
Route("/csv", csv_query),
],
)
Maybe I should be using |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Research option for returning all rows from arbitrary query 1077628073 |
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 8