home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

10 rows where issue = 497170355 sorted by updated_at descending

✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 1

  • simonw 10

issue 1

  • Documented internals API for use in plugins · 10 ✖

author_association 1

  • OWNER 10
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
754957658 https://github.com/simonw/datasette/issues/576#issuecomment-754957658 https://api.github.com/repos/simonw/datasette/issues/576 MDEyOklzc3VlQ29tbWVudDc1NDk1NzY1OA== simonw 9599 2021-01-05T23:12:50Z 2021-01-05T23:12:50Z OWNER

See https://docs.datasette.io/en/stable/internals.html

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Documented internals API for use in plugins 497170355  
754957563 https://github.com/simonw/datasette/issues/576#issuecomment-754957563 https://api.github.com/repos/simonw/datasette/issues/576 MDEyOklzc3VlQ29tbWVudDc1NDk1NzU2Mw== simonw 9599 2021-01-05T23:12:37Z 2021-01-05T23:12:37Z OWNER

I'm happy with how this has evolved, so I'm closing the issue.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Documented internals API for use in plugins 497170355  
636340618 https://github.com/simonw/datasette/issues/576#issuecomment-636340618 https://api.github.com/repos/simonw/datasette/issues/576 MDEyOklzc3VlQ29tbWVudDYzNjM0MDYxOA== simonw 9599 2020-05-30T14:46:04Z 2020-05-30T18:41:41Z OWNER

I should also think about the class properties (as opposed to methods) that are setup in the Datasette constructor. Many of these should be private, some should be documented.

  • cache_headers
  • cors
  • databases
  • executor
  • files
  • immutables
  • inspect_data
  • jinja_env
  • max_returned_rows
  • page_size
  • plugins_dir
  • renderers
  • sql_time_limit_ms
  • sqlite_extensions
  • sqlite_functions
  • static_mounts
  • template_dir
  • version_note
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Documented internals API for use in plugins 497170355  
636332183 https://github.com/simonw/datasette/issues/576#issuecomment-636332183 https://api.github.com/repos/simonw/datasette/issues/576 MDEyOklzc3VlQ29tbWVudDYzNjMzMjE4Mw== simonw 9599 2020-05-30T13:37:51Z 2020-05-30T13:38:35Z OWNER

__init__(self, files, immutables=None, cache_headers=True, cors=False, inspect_data=None, metadata=None, sqlite_extensions=None, template_dir=None, plugins_dir=None, static_mounts=None, memory=False, config=None, version_note=None, config_dir=None)

Initialize self. See help(type(self)) for accurate signature.

absolute_url(self, request, path)

add_database(self, name, db)

app(self)

Returns an ASGI app function that serves the whole of [Datasette](http://localhost:8066/datasette.app.html#Datasette)

app_css_hash(self)

config(self, key)

config_dict(self)

connected_databases(self)

execute(self, db_name, sql, params=None, truncate=False, custom_time_limit=None, page_size=None, log_sql_errors=True)

expand_foreign_keys(self, database, table, column, values)

Returns dict mapping (column, value) -> label

get_canned_queries(self, database_name)

get_canned_query(self, database_name, query_name)

metadata(self, key=None, database=None, table=None, fallback=True)

Looks up metadata, cascading backwards from specified level.\ Returns None if metadata value is not found.

plugin_config(self, plugin_name, database=None, table=None, fallback=True)

Return config for plugin, falling back from specified database/table

plugins(self, show_all=False)

prepare_connection(self, conn, database)

register_custom_units(self)

Register any custom units defined in the metadata.json with Pint

register_renderers(self)

Register output renderers which output data in custom formats.

remove_database(self, name)

render_template(self, templates, context=None, request=None, view_name=None)

table_metadata(self, database, table)

Fetch table-specific metadata.

threads(self)

update_with_inherited_metadata(self, metadata)

versions(self)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Documented internals API for use in plugins 497170355  
636332083 https://github.com/simonw/datasette/issues/576#issuecomment-636332083 https://api.github.com/repos/simonw/datasette/issues/576 MDEyOklzc3VlQ29tbWVudDYzNjMzMjA4Mw== simonw 9599 2020-05-30T13:36:55Z 2020-05-30T13:36:55Z OWNER

Here's the current Datasette class as introspected using the webserver run by pydoc -p 8000:

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Documented internals API for use in plugins 497170355  
636330843 https://github.com/simonw/datasette/issues/576#issuecomment-636330843 https://api.github.com/repos/simonw/datasette/issues/576 MDEyOklzc3VlQ29tbWVudDYzNjMzMDg0Mw== simonw 9599 2020-05-30T13:26:38Z 2020-05-30T13:26:38Z OWNER

There's a bunch of methods on that class which I could add a _ prefix to and leave undocumented. datasette.register_renderers() should be datasette._register_renderers() for example.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Documented internals API for use in plugins 497170355  
636329095 https://github.com/simonw/datasette/issues/576#issuecomment-636329095 https://api.github.com/repos/simonw/datasette/issues/576 MDEyOklzc3VlQ29tbWVudDYzNjMyOTA5NQ== simonw 9599 2020-05-30T13:11:39Z 2020-05-30T13:25:10Z OWNER

I need to document the .databases property - both how to get access to specific databases and how to access the first/only database.

Idea: datasette.get_database(name) method (consistent with existing .add_database() and .remove_database() methods) - but name parameter is optional, returns first database if you omit that.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Documented internals API for use in plugins 497170355  
636330438 https://github.com/simonw/datasette/issues/576#issuecomment-636330438 https://api.github.com/repos/simonw/datasette/issues/576 MDEyOklzc3VlQ29tbWVudDYzNjMzMDQzOA== simonw 9599 2020-05-30T13:23:04Z 2020-05-30T13:23:04Z OWNER

Need to document datasette.metadata() - see #780

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Documented internals API for use in plugins 497170355  
586053947 https://github.com/simonw/datasette/issues/576#issuecomment-586053947 https://api.github.com/repos/simonw/datasette/issues/576 MDEyOklzc3VlQ29tbWVudDU4NjA1Mzk0Nw== simonw 9599 2020-02-14T01:29:48Z 2020-05-30T13:22:09Z OWNER

OK, I've made a start on this now in 3ffb8f3b98252531d11897fd431711e9b8045ace - still plenty more methods to document. More importantly that class has a LOT of junk methods on that no-one should ever call from a plugin, so I need to decide what to do about those.

https://datasette.readthedocs.io/en/latest/internals.html

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Documented internals API for use in plugins 497170355  
571366326 https://github.com/simonw/datasette/issues/576#issuecomment-571366326 https://api.github.com/repos/simonw/datasette/issues/576 MDEyOklzc3VlQ29tbWVudDU3MTM2NjMyNg== simonw 9599 2020-01-06T23:50:33Z 2020-01-06T23:50:33Z OWNER

I wrote about this a bit here: https://simonwillison.net/2020/Jan/6/sitemap-xml/

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Documented internals API for use in plugins 497170355  

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