home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

8 rows where author_association = "OWNER" and "updated_at" is on date 2021-02-12 sorted by updated_at descending

✖
✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

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

issue 4

  • Support SSL/TLS directly 3
  • sqlite-utils insert: options for column types 2
  • --no-headers option for CSV and TSV 2
  • Error reading csv files with large column data 1

user 1

  • simonw 8

author_association 1

  • OWNER · 8 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
778511347 https://github.com/simonw/sqlite-utils/issues/228#issuecomment-778511347 https://api.github.com/repos/simonw/sqlite-utils/issues/228 MDEyOklzc3VlQ29tbWVudDc3ODUxMTM0Nw== simonw 9599 2021-02-12T23:27:50Z 2021-02-12T23:27:50Z OWNER

For the moment, a workaround can be to cat an additional row onto the start of the file.

echo "name,url,description" | cat - missing_headings.csv | sqlite-utils insert blah.db table - --csv
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
--no-headers option for CSV and TSV 807437089  
778510528 https://github.com/simonw/sqlite-utils/issues/131#issuecomment-778510528 https://api.github.com/repos/simonw/sqlite-utils/issues/131 MDEyOklzc3VlQ29tbWVudDc3ODUxMDUyOA== simonw 9599 2021-02-12T23:25:06Z 2021-02-12T23:25:06Z OWNER

If -c isn't available, maybe -t or --type would work for specifying column types: sqlite-utils insert db.db images images.tsv \ --tsv \ --type id int \ --type score float or sqlite-utils insert db.db images images.tsv \ --tsv \ -t id int \ -t score float

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
sqlite-utils insert: options for column types 675753042  
778508887 https://github.com/simonw/sqlite-utils/issues/131#issuecomment-778508887 https://api.github.com/repos/simonw/sqlite-utils/issues/131 MDEyOklzc3VlQ29tbWVudDc3ODUwODg4Nw== simonw 9599 2021-02-12T23:20:11Z 2021-02-12T23:20:11Z OWNER

Annoyingly -c is currently a shortcut for --csv - so I'd have to do a major version bump to use that.

https://github.com/simonw/sqlite-utils/blob/726219c3503e77440975cd15b74d006639feb0f8/sqlite_utils/cli.py#L601-L603

Particularly annoying because I attempted to remove the -c shortcut in https://github.com/simonw/sqlite-utils/commit/2c00567aac6d9c79087cfff0d054f64922b1473d#diff-76294b3d4afeb27e74e738daa01c26dd4dc9ccb6f4477451483a2ece1095902eL48 but forgot to remove it from the input options (I removed it from the output options).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
sqlite-utils insert: options for column types 675753042  
778349672 https://github.com/simonw/sqlite-utils/issues/228#issuecomment-778349672 https://api.github.com/repos/simonw/sqlite-utils/issues/228 MDEyOklzc3VlQ29tbWVudDc3ODM0OTY3Mg== simonw 9599 2021-02-12T18:00:43Z 2021-02-12T18:00:43Z OWNER

I could combine this with #131 to allow types to be specified in addition to column names.

Probably need an option that means "ignore the existing heading row and use this one instead".

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
--no-headers option for CSV and TSV 807437089  
778349142 https://github.com/simonw/sqlite-utils/issues/227#issuecomment-778349142 https://api.github.com/repos/simonw/sqlite-utils/issues/227 MDEyOklzc3VlQ29tbWVudDc3ODM0OTE0Mg== simonw 9599 2021-02-12T17:59:35Z 2021-02-12T17:59:35Z OWNER

It looks like I can at least bump this size limit up to the maximum allowed by Python - I'll take a look at that.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Error reading csv files with large column data 807174161  
777901052 https://github.com/simonw/datasette/issues/1221#issuecomment-777901052 https://api.github.com/repos/simonw/datasette/issues/1221 MDEyOklzc3VlQ29tbWVudDc3NzkwMTA1Mg== simonw 9599 2021-02-12T01:09:54Z 2021-02-12T01:09:54Z OWNER

I also tested this manually. I generated certificate files like so:

cd /tmp
python -m trustme

This created /tmp/server.pem, /tmp/client.pem and /tmp/server.key

Then I started Datasette like this:

datasette --memory --ssl-keyfile=/tmp/server.key --ssl-certfile=/tmp/server.pem

And exercise it using curl like so:

/tmp % curl --cacert /tmp/client.pem 'https://localhost:8001/_memory.json'
{"database": "_memory", "path": "/_memory", "size": 0, "tables": [], "hidden_count": 0, "views": [], "queries": [],
"private": false, "allow_execute_sql": true, "query_ms": 0.8843200000114848}

Note that without the --cacert option I get an error:

``` /tmp % curl 'https://localhost:8001/_memory.json' curl: (60) SSL certificate problem: Invalid certificate chain More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Support SSL/TLS directly 806849424  
777887190 https://github.com/simonw/datasette/issues/1221#issuecomment-777887190 https://api.github.com/repos/simonw/datasette/issues/1221 MDEyOklzc3VlQ29tbWVudDc3Nzg4NzE5MA== simonw 9599 2021-02-12T00:29:18Z 2021-02-12T00:29:18Z OWNER

I can use this recipe to start a datasette server in a sub-process during the pytest run and exercise it with real HTTP requests: https://til.simonwillison.net/pytest/subprocess-server

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Support SSL/TLS directly 806849424  
777883452 https://github.com/simonw/datasette/issues/1221#issuecomment-777883452 https://api.github.com/repos/simonw/datasette/issues/1221 MDEyOklzc3VlQ29tbWVudDc3Nzg4MzQ1Mg== simonw 9599 2021-02-12T00:19:30Z 2021-02-12T00:19:40Z OWNER

Uvicorn supports these options: https://www.uvicorn.org/#command-line-options ``` --ssl-keyfile TEXT SSL key file --ssl-certfile TEXT SSL certificate file --ssl-keyfile-password TEXT SSL keyfile password --ssl-version INTEGER SSL version to use (see stdlib ssl module's) [default: 2]

--ssl-cert-reqs INTEGER Whether client certificate is required (see stdlib ssl module's) [default: 0]

--ssl-ca-certs TEXT CA certificates file --ssl-ciphers TEXT Ciphers to use (see stdlib ssl module's) [default: TLSv1] `` For the moment I'm going to support just--ssl-keyfileand--ssl-certfileas arguments todatasette serve`. I'll add other options if people ask for them.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Support SSL/TLS directly 806849424  

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 812.949ms · About: github-to-sqlite
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows