def _updateIndices(db):
 db.executescript('\n-- syncing\ncreate index if not exists ix_notes_usn on notes (usn);\ncreate index if not exists ix_cards_usn on cards (usn);\ncreate index if not exists ix_revlog_usn on revlog (usn);\n-- card spacing, etc\ncreate index if not exists ix_cards_nid on cards (nid);\n-- scheduling and deck limiting\ncreate index if not exists ix_cards_sched on cards (did, queue, due);\n-- revlog by card\ncreate index if not exists ix_revlog_cid on revlog (cid);\n-- field uniqueness\ncreate index if not exists ix_notes_csum on notes (csum);\n')

def _updateIndices ( db ) : db . executescript ( '\n-- syncing\ncreate index if not exists ix_notes_usn on notes (usn);\ncreate index if not exists ix_cards_usn on cards (usn);\ncreate index if not exists ix_revlog_usn on revlog (usn);\n-- card spacing, etc\ncreate index if not exists ix_cards_nid on cards (nid);\n-- scheduling and deck limiting\ncreate index if not exists ix_cards_sched on cards (did, queue, due);\n-- revlog by card\ncreate index if not exists ix_revlog_cid on revlog (cid);\n-- field uniqueness\ncreate index if not exists ix_notes_csum on notes (csum);\n' )
add indices to the db .