Something went wrong. Try again.
(READ ONLY) Margin is an open annotation layer for the internet. Powered by the AT Protocol.
margin.at
extension web atproto comments
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536// Code generated by sqlc. DO NOT EDIT.// versions:// sqlc v1.31.1// source: kv.sql
package sqlcdb
import ( "context")
const getKVValue = `-- name: GetKVValue :oneSELECT value FROM kv_store WHERE key = $1`
func (q *Queries) GetKVValue(ctx context.Context, key string) (string, error) { row := q.db.QueryRow(ctx, getKVValue, key) var value string err := row.Scan(&value) return value, err}
const insertKVIgnore = `-- name: InsertKVIgnore :execINSERT INTO kv_store (key, value, updated_at) VALUES ($1, $2, NOW()) ON CONFLICT (key) DO NOTHING`
type InsertKVIgnoreParams struct { Key string `json:"key"` Value string `json:"value"`}
func (q *Queries) InsertKVIgnore(ctx context.Context, arg InsertKVIgnoreParams) error { _, err := q.db.Exec(ctx, insertKVIgnore, arg.Key, arg.Value) return err}