Commit Graph

7 Commits

Author SHA1 Message Date
ziggie
a9c30dacb5 sqldb: add helper for type boolean 2025-09-05 09:53:59 +02:00
Elle Mouton
40b279687f sqldb: add SQLStrValid helper
The SQL* helpers are meant to always set the `Valid` field of the
sql.Null* type to true. Otherwise they cannot be used to set a valid,
empty field. However, we dont want to break the behaviour of the
existing SQLStr helper and so this commit adds a new helper with the
desired functionality.
2025-09-03 15:46:11 +02:00
Elle Mouton
e4137a3f14 graph/db: fix ChanUpdate message/channel flag bug
Here we start using the newly added message_flags and channel_flags
columns of the channel_policies table. The test added previoulsy to
demonstrate the bug is now updated to show that the bug has been fixed.
2025-07-01 10:12:54 +02:00
Elle Mouton
90aacaae2a sqldb: add SQLInt16 helper 2025-07-01 10:12:53 +02:00
Elle Mouton
9cbc1f804e multi: use sqldb.NoOpReset helper
Define a re-usable "reset" function, sqldb.NoOpReset, that can be used
for the reset parameter in sql ExecTx calls.
2025-05-28 10:18:53 +02:00
Andras Banki-Horvath
6d316ef56f sqldb: export sql null type helpers 2024-04-09 20:46:11 +02:00
Andras Banki-Horvath
5cf67c4440 sqldb: add utility functions for SQL NULL types 2024-03-01 10:08:07 +01:00