add readme and limit log entry counts displayed
All checks were successful
/ build-container (push) Successful in 8m0s
All checks were successful
/ build-container (push) Successful in 8m0s
This commit is contained in:
parent
01b7750259
commit
4627ae91b3
3 changed files with 20 additions and 2 deletions
|
@ -97,7 +97,7 @@ func (q *Queries) GetLogForLock(ctx context.Context, lock int64) ([]LockLog, err
|
|||
}
|
||||
|
||||
const getLogForSlot = `-- name: GetLogForSlot :many
|
||||
SELECT lock, timestamp, state, code, issued_code FROM lock_log WHERE lock = ? AND code = ? ORDER BY timestamp DESC
|
||||
SELECT lock, timestamp, state, code, issued_code FROM lock_log WHERE lock = ? AND code = ? ORDER BY timestamp DESC LIMIT 100
|
||||
`
|
||||
|
||||
type GetLogForSlotParams struct {
|
||||
|
|
|
@ -5,7 +5,7 @@ INSERT INTO lock_log (lock, state, code) VALUES (?, ?, ?);
|
|||
SELECT * FROM lock_log WHERE lock = ? ORDER BY timestamp DESC;
|
||||
|
||||
-- name: GetLogForSlot :many
|
||||
SELECT * FROM lock_log WHERE lock = ? AND code = ? ORDER BY timestamp DESC;
|
||||
SELECT * FROM lock_log WHERE lock = ? AND code = ? ORDER BY timestamp DESC LIMIT 100;
|
||||
|
||||
-- name: GetLastLogForSlot :many
|
||||
SELECT * FROM lock_log WHERE lock = ? AND code = ? ORDER BY timestamp DESC LIMIT 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue