blob: 1b580a6d844512f9455a8ebd416b7ff7212d0942 (
plain)
1
2
3
4
5
|
function sd-add
set cardfile cards
set idx (math 1+(sqlite3 "$cardfile" "select max(idx) from cards"))
sqlite3 "$cardfile" "insert into cards values ($idx, 256, '$argv[1]', '$argv[2]')"
end
|