Something went wrong. Try again.
the coolest token pot ever
Something went wrong. Try again.
12345678910111213141516-- name: GetUserMemory :manySELECT * FROM user_memory WHERE user_id = ? ORDER BY key;
-- name: GetUserMemoryKey :oneSELECT * FROM user_memory WHERE user_id = ? AND key = ?;
-- name: UpsertUserMemory :execINSERT INTO user_memory (user_id, key, value, created_at, updated_at)VALUES (?, ?, ?, unixepoch(), unixepoch())ON CONFLICT(user_id, key) DO UPDATE SET value = excluded.value, updated_at = unixepoch();
-- name: DeleteUserMemoryKey :execDELETE FROM user_memory WHERE user_id = ? AND key = ?;