{"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} {"html_url": "https://github.com/simonw/datasette/issues/684#issuecomment-590681375", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/684", "id": 590681375, "node_id": "MDEyOklzc3VlQ29tbWVudDU5MDY4MTM3NQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-02-25T04:47:01Z", "updated_at": "2020-02-25T04:47:01Z", "author_association": "OWNER", "body": "This page here: https://datasette.readthedocs.io/en/latest/internals.html", "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} {"html_url": "https://github.com/simonw/datasette/issues/684#issuecomment-591062343", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/684", "id": 591062343, "node_id": "MDEyOklzc3VlQ29tbWVudDU5MTA2MjM0Mw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-02-25T20:50:32Z", "updated_at": "2020-02-25T20:50:32Z", "author_association": "OWNER", "body": "More important is to document `execute()` - see #685 ", "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} {"html_url": "https://github.com/simonw/datasette/issues/684#issuecomment-639053707", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/684", "id": 639053707, "node_id": "MDEyOklzc3VlQ29tbWVudDYzOTA1MzcwNw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-06-04T18:56:15Z", "updated_at": "2020-06-04T18:56:15Z", "author_association": "OWNER", "body": "This documentation is live here: https://datasette.readthedocs.io/en/latest/internals.html#database-introspection", "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}