mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
27 lines
No EOL
525 B
SQL
27 lines
No EOL
525 B
SQL
-- name: AllStaticAddresses :many
|
|
SELECT * FROM static_addresses;
|
|
|
|
-- name: GetStaticAddress :one
|
|
SELECT * FROM static_addresses
|
|
WHERE pkscript=$1;
|
|
|
|
-- name: CreateStaticAddress :exec
|
|
INSERT INTO static_addresses (
|
|
client_pubkey,
|
|
server_pubkey,
|
|
expiry,
|
|
client_key_family,
|
|
client_key_index,
|
|
pkscript,
|
|
protocol_version,
|
|
initiation_height
|
|
) VALUES (
|
|
$1,
|
|
$2,
|
|
$3,
|
|
$4,
|
|
$5,
|
|
$6,
|
|
$7,
|
|
$8
|
|
); |