Skip to content

Instantly share code, notes, and snippets.

@entrity
Created January 24, 2018 05:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save entrity/f4c8ee29cdd230ca67efd029a1356456 to your computer and use it in GitHub Desktop.
Save entrity/f4c8ee29cdd230ca67efd029a1356456 to your computer and use it in GitHub Desktop.
Test Anki Deck
sqlite> select * from notes;
1|MTUxNjc2OTYw|1342697561419|1516769609|-1||Chinese fooddim sum|Chinese food|3355160037|0|
2|MTUxNjc2OTYw|1342697561419|1516769609|-1||Korean foodbulgogi|Korean food|2729990631|0|
sqlite> select * from cards;
1|1|1|0|1516769609|-1|0|0|484332854|0|0|0|0|0|0|0|0|
2|2|1|0|1516769609|-1|0|0|484332854|0|0|0|0|0|0|0|0|
sqlite> select * from col;
1|1332961200|1398130163295|1398130163168|11|0|0|0|{"nextPos":1,"estTimes":true,"activeDecks":[1],"sortType":"noteFld","timeLim":0,"sortBackwards":false,"addToCur":true,"curDeck":1,"newBury":true,"newSpread":0,"dueCounts":true,"curModel":"1398130163168","collapseTime":1200}|{"1342697561419":{"vers":[],"name":"Basic","tags":[],"did":1398130078204,"usn":-1,"req":[[0,"all",[0]]],"flds":[{"name":"Front","rtl":false,"sticky":false,"media":[],"ord":0,"font":"Arial","size":12},{"name":"Back","rtl":false,"sticky":false,"media":[],"ord":1,"font":"Arial","size":12}],"sortf":0,"latexPre":"\\documentclass[12pt]{article}\n\\special{papersize=3in,5in}\n\\usepackage{amssymb,amsmath}\n\\pagestyle{empty}\n\\setlength{\\parindent}{0in}\n\\begin{document}\n","tmpls":[{"name":"Forward","qfmt":"{{Front}}","did":null,"bafmt":"","afmt":"{{FrontSide}}\n\n<hr id=answer/>\n\n{{Back}}","ord":0,"bqfmt":""}],"latexPost":"\\end{document}","type":0,"id":1342697561419,"css":".card {\n font-family: arial;\n font-size: 30px;\n text-align: center;\n color: black;\n white;\n}\n\n.card1 { #FFFFFF; }","mod":1398130117}}|{"1":{"desc":"","name":"MydEck","extendRev":50,"usn":0,"collapsed":false,"newToday":[0,0],"timeToday":[0,0],"dyn":0,"extendNew":10,"conf":1,"revToday":[0,0],"lrnToday":[0,0],"id":1,"mod":1398130160}}|{"1":{"name":"MydEck","replayq":true,"lapse":{"leechFails":8,"minInt":1,"delays":[10],"leechAction":0,"mult":0},"rev":{"perDay":100,"fuzz":0.05,"ivlFct":1,"maxIvl":36500,"ease4":1.3,"bury":true,"minSpace":1},"timer":0,"maxTaken":60,"usn":0,"new":{"perDay":20,"delays":[1,10],"separate":true,"ints":[1,4,7],"initialFactor":2500,"bury":true,"order":1},"mod":0,"id":1,"autoplay":true}}|{}
CREATE TABLE col (
id integer primary key autoincrement,
crt integer not null,
mod integer not null,
scm integer not null,
ver integer not null,
dty integer not null,
usn integer not null,
ls integer not null,
conf text not null,
models text not null,
decks text not null,
dconf text not null,
tags text not null
);
CREATE TABLE notes (
id integer primary key autoincrement, /* 0 */
guid text not null, /* 1 */
mid integer not null, /* 2 */
mod integer not null, /* 3 */
usn integer not null, /* 4 */
tags text not null, /* 5 */
flds text not null, /* 6 */
sfld integer not null, /* 7 */
csum integer not null, /* 8 */
flags integer not null, /* 9 */
data text not null /* 10 */
);
CREATE TABLE cards (
id integer primary key autoincrement, /* 0 */
nid integer not null, /* 1 */
did integer not null, /* 2 */
ord integer not null, /* 3 */
mod integer not null, /* 4 */
usn integer not null, /* 5 */
type integer not null, /* 6 */
queue integer not null, /* 7 */
due integer not null, /* 8 */
ivl integer not null, /* 9 */
factor integer not null, /* 10 */
reps integer not null, /* 11 */
lapses integer not null, /* 12 */
left integer not null, /* 13 */
odue integer not null, /* 14 */
odid integer not null, /* 15 */
flags integer not null, /* 16 */
data text not null /* 17 */
);
CREATE TABLE revlog (
id integer primary key autoincrement,
cid integer not null,
usn integer not null,
ease integer not null,
ivl integer not null,
lastIvl integer not null,
factor integer not null,
time integer not null,
type integer not null
);
CREATE TABLE graves (
usn integer not null,
oid integer not null,
type integer not null
);
CREATE INDEX ix_notes_usn on notes (usn);
CREATE INDEX ix_cards_usn on cards (usn);
CREATE INDEX ix_revlog_usn on revlog (usn);
CREATE INDEX ix_cards_nid on cards (nid);
CREATE INDEX ix_cards_sched on cards (did, queue, due);
CREATE INDEX ix_revlog_cid on revlog (cid);
CREATE INDEX ix_notes_csum on notes (csum);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment