home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 321631020

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association pull_request body repo type active_lock_reason performed_via_github_app reactions draft state_reason
321631020 MDU6SXNzdWUzMjE2MzEwMjA= 253 Documentation explaining how to use SQLite FTS with Datasette 9599 closed 0     1 2018-05-09T16:02:08Z 2018-05-12T12:09:02Z 2018-05-12T12:06:51Z OWNER  

In particular how to work with https://www.sqlite.org/fts3.html#external_content_fts4_tables - which Datasette can automatically detect and use to add a search UI to your page.

Examples of basic search setup like this:

CREATE VIRTUAL TABLE "interests_fts" USING FTS4 (name, content="interests"); INSERT INTO "interests_fts" (rowid, name) SELECT rowid, name FROM interests;

And complex join-based search setup like this:

CREATE VIRTUAL TABLE "interests_fts" USING FTS4 (name, category, member, content="interests"); INSERT INTO "interests_fts" (rowid, name, category, member) SELECT interests.rowid, interests.name, interest_categories.name, members.name FROM interests JOIN interest_categories ON interests.category_id = interest_categories.id JOIN members ON interests.member_id = members.id;

Also mention how csvs-to-sqlite can be used to do this easily.

This will benefit from #252

107914493 issue    
{
    "url": "https://api.github.com/repos/simonw/datasette/issues/253/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed

Links from other tables

  • 1 row from issues_id in issues_labels
  • 1 row from issue in issue_comments
Powered by Datasette · Queries took 0.851ms · About: github-to-sqlite