You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"create table if not exists notes (id integer not null unique, note text not null check(length(note) != 0), deleted integer not null default 0 check(deleted = 0 or deleted = 1), primary key(id autoincrement));"
],
"queries": {
"read": {
"notes": {
"sql_template": "select cast(id as text), note from notes where deleted = 0;",
"args": [],
"cols": ["id", "note"]
}
},
"write": {
"add_note": {
"sql_template": "insert into notes (note) values (?);",