11 rows where issue = 268470572 sorted by updated_at descending

View and edit SQL

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

user

issue

  • Implement command-line tool interface · 11

author_association

id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
343646740 https://github.com/simonw/datasette/issues/40#issuecomment-343646740 https://api.github.com/repos/simonw/datasette/issues/40 MDEyOklzc3VlQ29tbWVudDM0MzY0Njc0MA== simonw 9599 2017-11-11T07:27:33Z 2017-11-11T07:27:33Z OWNER

I'm happy with this now that I've implemented the publish command in #26

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Implement command-line tool interface 268470572  
342030075 https://github.com/simonw/datasette/issues/40#issuecomment-342030075 https://api.github.com/repos/simonw/datasette/issues/40 MDEyOklzc3VlQ29tbWVudDM0MjAzMDA3NQ== simonw 9599 2017-11-06T02:25:48Z 2017-11-06T02:25:48Z OWNER

... I tried that, I don't like it. I'm going to bring back "directory serving" by allowing you to pass a directory as an argument to datasite (including datasite .). I may even make . the default if you don't provide anything at all.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Implement command-line tool interface 268470572  
341945420 https://github.com/simonw/datasette/issues/40#issuecomment-341945420 https://api.github.com/repos/simonw/datasette/issues/40 MDEyOklzc3VlQ29tbWVudDM0MTk0NTQyMA== simonw 9599 2017-11-05T02:55:07Z 2017-11-05T02:55:07Z OWNER

To simplify things a bit, I'm going to require that every database is explicitly listed in the command line. I won't support "serve everything in this directory" for the moment.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Implement command-line tool interface 268470572  
340561577 https://github.com/simonw/datasette/issues/40#issuecomment-340561577 https://api.github.com/repos/simonw/datasette/issues/40 MDEyOklzc3VlQ29tbWVudDM0MDU2MTU3Nw== simonw 9599 2017-10-30T19:43:40Z 2017-10-30T19:43:40Z OWNER
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Implement command-line tool interface 268470572  
339891755 https://github.com/simonw/datasette/issues/40#issuecomment-339891755 https://api.github.com/repos/simonw/datasette/issues/40 MDEyOklzc3VlQ29tbWVudDMzOTg5MTc1NQ== simonw 9599 2017-10-27T07:10:53Z 2017-10-27T07:10:53Z OWNER

Deploys to Now aren't working at the moment - they aren't showing the uploaded databases, because I've broken the path handling somehow. I need to do a bit more work here.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Implement command-line tool interface 268470572  
339724700 https://github.com/simonw/datasette/issues/40#issuecomment-339724700 https://api.github.com/repos/simonw/datasette/issues/40 MDEyOklzc3VlQ29tbWVudDMzOTcyNDcwMA== simonw 9599 2017-10-26T16:35:20Z 2017-10-26T16:35:20Z OWNER

Here’s how to make the “serve” subcommand the default if it is called with no arguments:

@click.group(invoke_without_command=True)
def serve():
    # ...
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Implement command-line tool interface 268470572  
339517846 https://github.com/simonw/datasette/issues/40#issuecomment-339517846 https://api.github.com/repos/simonw/datasette/issues/40 MDEyOklzc3VlQ29tbWVudDMzOTUxNzg0Ng== simonw 9599 2017-10-26T00:58:39Z 2017-10-26T00:58:39Z OWNER
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Implement command-line tool interface 268470572  
339516032 https://github.com/simonw/datasette/issues/40#issuecomment-339516032 https://api.github.com/repos/simonw/datasette/issues/40 MDEyOklzc3VlQ29tbWVudDMzOTUxNjAzMg== simonw 9599 2017-10-26T00:44:52Z 2017-10-26T00:44:52Z OWNER

Another potential name: datapi

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Implement command-line tool interface 268470572  
339515822 https://github.com/simonw/datasette/issues/40#issuecomment-339515822 https://api.github.com/repos/simonw/datasette/issues/40 MDEyOklzc3VlQ29tbWVudDMzOTUxNTgyMg== simonw 9599 2017-10-26T00:43:34Z 2017-10-26T00:43:34Z OWNER

datasite .

  • starts web app in current directory, serving all DB files

datasite . -p 8001

  • serves on custom port

datasite blah.db blah2.db

  • serves specified files

You can’t specify more than one directory. You can specify as many files as you like. If you specify two files with different oaths but the same name then they must be accessed by hash.

datasite publish .

  • publishes current directory to the internet! Uses now by default, if it detects it on your path. Other publishers will be eventually added as plugins.

datasite publish http://path-to-db.db

  • publishes a DB available at a URL. Works by constructing the Dockerfile with wget calls in it.

datasite blah.db -m metadata.json

If you specify a directory it looks for metadata.json in that directory. Otherwise you can pass an explicit metadata file oath with -m or —metadata

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Implement command-line tool interface 268470572  
339514819 https://github.com/simonw/datasette/issues/40#issuecomment-339514819 https://api.github.com/repos/simonw/datasette/issues/40 MDEyOklzc3VlQ29tbWVudDMzOTUxNDgxOQ== simonw 9599 2017-10-26T00:35:46Z 2017-10-26T00:35:46Z OWNER

I’m going to have a single command-line app that does everything.

Name to be decided - options include dataset, stateless, datasite (I quite like that - it reflects SQLite and the fact that you create a website)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Implement command-line tool interface 268470572  
339395551 https://github.com/simonw/datasette/issues/40#issuecomment-339395551 https://api.github.com/repos/simonw/datasette/issues/40 MDEyOklzc3VlQ29tbWVudDMzOTM5NTU1MQ== simonw 9599 2017-10-25T16:49:32Z 2017-10-25T16:49:32Z OWNER

Simplest implementation will be to create a temporary directory somewhere, copy in a Dockerfile and the databases and run “now” in it.

Ideally I can use symlinks rather than copying potentially large database files around.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Implement command-line tool interface 268470572  

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]);