home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 517241040

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
517241040 MDU6SXNzdWU1MTcyNDEwNDA= 63 ensure_index() method 9599 closed 0     1 2019-11-04T15:51:22Z 2019-11-04T16:20:36Z 2019-11-04T16:20:35Z OWNER  

python db["table"].ensure_index(["col1", "col2"])

This will do the following: - if the specified table or column does not exist, do nothing - if they exist and already have an index, do nothing - otherwise, create the index

I want this for tools like twitter-to-sqlite search where the search_runs table may or not have been created yet but, if it IS created, I want to put an index on the hash column.

140912432 issue    
{
    "url": "https://api.github.com/repos/simonw/sqlite-utils/issues/63/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.881ms · About: github-to-sqlite