blob: 69bb35338fe46d8206f0cd417d8feaee036fa828 (
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
|