diff options
author | fiaxh <git@lightrise.org> | 2024-05-26 18:24:54 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2024-06-19 20:08:07 +0200 |
commit | c8b20d0f5f33fb8b9898d216c3b4c9280abf31da (patch) | |
tree | b3e807134ea95c8365bad19ce97c03e3bcdedb9c /qlite/src/upsert_builder.vala | |
parent | f1be90c02f26c942e67978fd6d10ff2feeec8f9e (diff) | |
download | dino-c8b20d0f5f33fb8b9898d216c3b4c9280abf31da.tar.gz dino-c8b20d0f5f33fb8b9898d216c3b4c9280abf31da.zip |
Store requested disco results with computed hash, use for offline determining of private MUCs
Diffstat (limited to 'qlite/src/upsert_builder.vala')
-rw-r--r-- | qlite/src/upsert_builder.vala | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/qlite/src/upsert_builder.vala b/qlite/src/upsert_builder.vala index 7daf7109..79104972 100644 --- a/qlite/src/upsert_builder.vala +++ b/qlite/src/upsert_builder.vala @@ -26,9 +26,13 @@ public class UpsertBuilder : StatementBuilder { return this; } - public UpsertBuilder value_null<T>(Column<T> column) { + public UpsertBuilder value_null<T>(Column<T> column, bool key = false) { if (column.not_null) error("Can't set non-null column %s to null", column.name); - fields += new NullField<T>(column); + if (key) { + keys += new NullField<T>(column); + } else { + fields += new NullField<T>(column); + } return this; } |