{"html_url": "https://github.com/simonw/datasette/issues/684#issuecomment-590675727", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/684", "id": 590675727, "node_id": "MDEyOklzc3VlQ29tbWVudDU5MDY3NTcyNw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-02-25T04:20:42Z", "updated_at": "2020-02-26T00:03:19Z", "author_association": "OWNER", "body": "Here's what I have so far:\r\n```\r\ndb.name\r\n\r\ndb.size\r\n\r\ndb.mtime_ns\r\n\r\nawait db.table_exists(table)\r\n\r\nawait db.table_names()\r\n\r\nawait db.table_columns(table)\r\n\r\nawait db.primary_keys(table)\r\n\r\nReturns the names of the columns that are part of the primary key for this table.\r\n\r\nawait db.fts_table(table)\r\n\r\nReturns the name of the FTS table associated with this table, if one exists.\r\n\r\nawait db.label_column_for_table(table)\r\n\r\nReturns the label column that is associated with this table - either automatically detected or using the ``\"label_column\"`` key from :ref:`metadata`.\r\n\r\nawait db.foreign_keys_for_table(table)\r\n\r\nawait db.hidden_table_names()\r\n\r\nawait db.view_names()\r\n\r\nawait db.get_all_foreign_keys()\r\n\r\nawait db.get_outbound_foreign_keys(table)\r\n\r\nawait db.get_table_definition(table)\r\n\r\nawait db.get_view_definition(view)\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 570301333, "label": "Add documentation on Database introspection methods to internals.rst"}, "performed_via_github_app": null}