home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

5 rows where issue = 924748955 sorted by updated_at descending

✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 2

  • glasnt 3
  • Segerberg 2

author_association 2

  • CONTRIBUTOR 3
  • NONE 2

issue 1

  • Serve all db files in a folder · 5 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
967801997 https://github.com/simonw/datasette/issues/1380#issuecomment-967801997 https://api.github.com/repos/simonw/datasette/issues/1380 IC_kwDOBm6k_c45r3yN Segerberg 7094907 2021-11-13T08:05:37Z 2021-11-13T08:09:11Z NONE

@glasnt yeah I guess that could be an option. I run datasette on large databases > 75gb and the startup time is a bit slow for me even with -i --inspect-file options. Here's a quick sketch for a plugin that will reload db's in a folder that you set for the plugin in metadata.json. If you request /-reload-db new db's will be added. (You probably want to implement some authentication for this =) )

https://gist.github.com/Segerberg/b96a0e0a5389dce2396497323cda7042

{
    "total_count": 1,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 1,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Serve all db files in a folder 924748955  
967747190 https://github.com/simonw/datasette/issues/1380#issuecomment-967747190 https://api.github.com/repos/simonw/datasette/issues/1380 IC_kwDOBm6k_c45rqZ2 glasnt 813732 2021-11-13T00:47:26Z 2021-11-13T00:47:26Z CONTRIBUTOR

Would it make sense to run datasette with a fswatch/inotifywait on a folder, then?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Serve all db files in a folder 924748955  
967181828 https://github.com/simonw/datasette/issues/1380#issuecomment-967181828 https://api.github.com/repos/simonw/datasette/issues/1380 IC_kwDOBm6k_c45pgYE Segerberg 7094907 2021-11-12T15:00:18Z 2021-11-12T20:02:29Z NONE

There is no such option see https://github.com/simonw/datasette/issues/43. But you could write a plugin using the datasette.add_database(db, name=None) https://docs.datasette.io/en/stable/internals.html#add-database-db-name-none

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Serve all db files in a folder 924748955  
953366110 https://github.com/simonw/datasette/issues/1380#issuecomment-953366110 https://api.github.com/repos/simonw/datasette/issues/1380 IC_kwDOBm6k_c440zZe glasnt 813732 2021-10-27T22:48:55Z 2021-10-27T22:48:55Z CONTRIBUTOR

It looks like if the files argument is a directory, config_dir is set, but files in that folder are only loaded into self.files at the Datasette class initialisation.

I tried seeing if I could get --reload to work, but I'm getting issues trying to use that command when specifying a directory, as the command serve ends up in the files list(?):

datasette serve . --reload Error: Invalid value for '[FILES]...': Path 'serve' does not exist.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Serve all db files in a folder 924748955  
953334718 https://github.com/simonw/datasette/issues/1380#issuecomment-953334718 https://api.github.com/repos/simonw/datasette/issues/1380 IC_kwDOBm6k_c440ru- glasnt 813732 2021-10-27T21:45:04Z 2021-10-27T21:45:04Z CONTRIBUTOR

I am also getting this issue, using the currently most recent version of datasette

$ datasette --version datasette, version 0.59.1

If I run datasette within just a folder of files,

$ datasette serve .

Adding new files while datasette is running shows no new files, and removing files causes datasette to return 500 errors.

home Error 500 [Errno 2] No such file or directory: 'mydatabase.db' Powered by Datasette

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Serve all db files in a folder 924748955  

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