home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

10 rows where issue = 325373747 sorted by updated_at descending

✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 2

  • simonw 6
  • r4vi 4

author_association 2

  • OWNER 6
  • CONTRIBUTOR 4

issue 1

  • Build Dockerfile with recent Sqlite + Spatialite · 10 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
401003061 https://github.com/simonw/datasette/pull/280#issuecomment-401003061 https://api.github.com/repos/simonw/datasette/issues/280 MDEyOklzc3VlQ29tbWVudDQwMTAwMzA2MQ== simonw 9599 2018-06-28T11:26:23Z 2018-06-28T11:26:23Z OWNER

I pushed this to Docker Hub https://hub.docker.com/r/datasetteproject/datasette/ and added notes on how to use it to the documentation: http://datasette.readthedocs.io/en/latest/installation.html#using-docker

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Build Dockerfile with recent Sqlite + Spatialite 325373747  
391437199 https://github.com/simonw/datasette/pull/280#issuecomment-391437199 https://api.github.com/repos/simonw/datasette/issues/280 MDEyOklzc3VlQ29tbWVudDM5MTQzNzE5OQ== simonw 9599 2018-05-23T17:44:20Z 2018-05-23T17:44:20Z OWNER

Thank you very much! This is most excellent.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Build Dockerfile with recent Sqlite + Spatialite 325373747  
391355030 https://github.com/simonw/datasette/pull/280#issuecomment-391355030 https://api.github.com/repos/simonw/datasette/issues/280 MDEyOklzc3VlQ29tbWVudDM5MTM1NTAzMA== r4vi 565628 2018-05-23T13:53:27Z 2018-05-23T15:22:45Z CONTRIBUTOR

No objections; It's good to go @simonw

On Wed, 23 May 2018, 14:51 Simon Willison, notifications@github.com wrote:

@r4vi https://github.com/r4vi any objections to me merging this?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/simonw/datasette/pull/280#issuecomment-391354237, or mute the thread https://github.com/notifications/unsubscribe-auth/AAihfM_2DN5WR2mkO-VK6ozDmkUQ4IMjks5t1WlcgaJpZM4UI_2m .

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Build Dockerfile with recent Sqlite + Spatialite 325373747  
391354237 https://github.com/simonw/datasette/pull/280#issuecomment-391354237 https://api.github.com/repos/simonw/datasette/issues/280 MDEyOklzc3VlQ29tbWVudDM5MTM1NDIzNw== simonw 9599 2018-05-23T13:51:22Z 2018-05-23T13:51:22Z OWNER

@r4vi any objections to me merging this?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Build Dockerfile with recent Sqlite + Spatialite 325373747  
391290271 https://github.com/simonw/datasette/pull/280#issuecomment-391290271 https://api.github.com/repos/simonw/datasette/issues/280 MDEyOklzc3VlQ29tbWVudDM5MTI5MDI3MQ== r4vi 565628 2018-05-23T09:53:38Z 2018-05-23T09:53:38Z CONTRIBUTOR

Running: bash docker run -p 8001:8001 -v `pwd`:/mnt datasette \ datasette -p 8001 -h 0.0.0.0 /mnt/fixtures.db \ --load-extension=/usr/local/lib/mod_spatialite.so

is now returning FTS5 enabled in the versions output:

json { "datasette": { "version": "0.22" }, "python": { "full": "3.6.5 (default, May 5 2018, 03:07:21) \n[GCC 6.3.0 20170516]", "version": "3.6.5" }, "sqlite": { "extensions": { "json1": null, "spatialite": "4.4.0-RC0" }, "fts_versions": [ "FTS5", "FTS4", "FTS3" ], "version": "3.23.1" } } The old query didn't work because specifying (t TEXT) caused an error

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Build Dockerfile with recent Sqlite + Spatialite 325373747  
391190497 https://github.com/simonw/datasette/pull/280#issuecomment-391190497 https://api.github.com/repos/simonw/datasette/issues/280 MDEyOklzc3VlQ29tbWVudDM5MTE5MDQ5Nw== simonw 9599 2018-05-23T01:22:53Z 2018-05-23T01:22:53Z OWNER

I grabbed just your Dockerfile and built it like this:

docker build . -t datasette

Once it had built, I ran it like this:

docker run -p 8001:8001 -v `pwd`:/mnt datasette \
    datasette -p 8001 -h 0.0.0.0 /mnt/fixtures.db \
        --load-extension=/usr/local/lib/mod_spatialite.so

(The fixtures.db file is created by running python tests/fixtures.py fixtures.db)

Then I visited http://localhost:8001/-/versions and I got this:

{
    "datasette": {
        "version": "0+unknown"
    },
    "python": {
        "full": "3.6.3 (default, Dec 12 2017, 06:37:05) \n[GCC 6.3.0 20170516]",
        "version": "3.6.3"
    },
    "sqlite": {
        "extensions": {
            "json1": null,
            "spatialite": "4.4.0-RC0"
        },
        "fts_versions": [
            "FTS4",
            "FTS3"
        ],
        "version": "3.23.1"
    }
}

Fantastic! I'm getting SQLite 3.23.1 and SpatiaLite 4.4.0-RC0

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Build Dockerfile with recent Sqlite + Spatialite 325373747  
391141391 https://github.com/simonw/datasette/pull/280#issuecomment-391141391 https://api.github.com/repos/simonw/datasette/issues/280 MDEyOklzc3VlQ29tbWVudDM5MTE0MTM5MQ== r4vi 565628 2018-05-22T21:08:39Z 2018-05-22T21:08:39Z CONTRIBUTOR

I'm going to clean this up for consistency tomorrow morning so hold off merging until then please

On Tue, May 22, 2018 at 6:34 PM, Simon Willison notifications@github.com wrote:

Yeah let's try this without pysqlite3 and see if we still get the correct version.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/simonw/datasette/pull/280#issuecomment-391076458, or mute the thread https://github.com/notifications/unsubscribe-auth/AAihfMI-H6CBt-Py0xdBbH2xDK0KsjT2ks5t1EwYgaJpZM4UI_2m .

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Build Dockerfile with recent Sqlite + Spatialite 325373747  
391076458 https://github.com/simonw/datasette/pull/280#issuecomment-391076458 https://api.github.com/repos/simonw/datasette/issues/280 MDEyOklzc3VlQ29tbWVudDM5MTA3NjQ1OA== simonw 9599 2018-05-22T17:34:13Z 2018-05-22T17:34:13Z OWNER

Yeah let's try this without pysqlite3 and see if we still get the correct version.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Build Dockerfile with recent Sqlite + Spatialite 325373747  
391076239 https://github.com/simonw/datasette/pull/280#issuecomment-391076239 https://api.github.com/repos/simonw/datasette/issues/280 MDEyOklzc3VlQ29tbWVudDM5MTA3NjIzOQ== simonw 9599 2018-05-22T17:33:33Z 2018-05-22T17:33:33Z OWNER

This looks amazing! Can't wait to try this out this evening.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Build Dockerfile with recent Sqlite + Spatialite 325373747  
391059008 https://github.com/simonw/datasette/pull/280#issuecomment-391059008 https://api.github.com/repos/simonw/datasette/issues/280 MDEyOklzc3VlQ29tbWVudDM5MTA1OTAwOA== r4vi 565628 2018-05-22T16:40:27Z 2018-05-22T16:40:27Z CONTRIBUTOR

```python

import sqlite3 sqlite3.sqlite_version '3.23.1'

``` running the above in the container seems to show 3.23.1 too so maybe we don't need pysqlite3 at all?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Build Dockerfile with recent Sqlite + Spatialite 325373747  

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