// Code generated by sqlc. DO NOT EDIT. // versions: // sqlc v1.31.1 // source: platform_settings.sql package store import ( "context" ) const getPlatformSetting = `-- name: GetPlatformSetting :one SELECT value FROM platform_settings WHERE key = $1 ` func (q *Queries) GetPlatformSetting(ctx context.Context, key string) ([]byte, error) { row := q.db.QueryRow(ctx, getPlatformSetting, key) var value []byte err := row.Scan(&value) return value, err } const setPlatformSetting = `-- name: SetPlatformSetting :exec INSERT INTO platform_settings (key, value) VALUES ($1, $2) ON CONFLICT (key) DO UPDATE SET value = EXCLUDED.value, updated_at = now() ` type SetPlatformSettingParams struct { Key string Value []byte } func (q *Queries) SetPlatformSetting(ctx context.Context, arg SetPlatformSettingParams) error { _, err := q.db.Exec(ctx, setPlatformSetting, arg.Key, arg.Value) return err }