mirror of
https://github.com/lightninglabs/loop
synced 2024-11-09 19:10:47 +00:00
10 lines
252 B
SQL
10 lines
252 B
SQL
-- name: UpsertLiquidityParams :exec
|
|
INSERT INTO liquidity_params (
|
|
id, params
|
|
) VALUES (
|
|
1, $1
|
|
) ON CONFLICT (id) DO UPDATE SET
|
|
params = excluded.params;
|
|
|
|
-- name: FetchLiquidityParams :one
|
|
SELECT params FROM liquidity_params WHERE id = 1; |