6 lines
179 B
MySQL
6 lines
179 B
MySQL
|
-- name: AddLogEntry :exec
|
||
|
INSERT INTO lock_log (lock, state, code) VALUES (?, ?, ?);
|
||
|
|
||
|
-- name: GetLogForLock :many
|
||
|
SELECT * FROM lock_log WHERE lock = ? ORDER BY timestamp DESC;
|