aboutsummaryrefslogtreecommitdiff
path: root/qlite/src/table.vala
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2017-08-26 00:05:36 +0200
committerMarvin W <git@larma.de>2017-08-27 14:52:10 +0200
commitad033beea82a4ba20da71220966b80d5f674428f (patch)
tree91d18a157b78f09ffb0c502c431a7de720d925c6 /qlite/src/table.vala
parent8533ba645046e03378d7b9fd3048f15c05f332f7 (diff)
downloaddino-ad033beea82a4ba20da71220966b80d5f674428f.tar.gz
dino-ad033beea82a4ba20da71220966b80d5f674428f.zip
qlite: add upsert support
Diffstat (limited to 'qlite/src/table.vala')
-rw-r--r--qlite/src/table.vala5
1 files changed, 5 insertions, 0 deletions
diff --git a/qlite/src/table.vala b/qlite/src/table.vala
index 6e7e1290..82759dd1 100644
--- a/qlite/src/table.vala
+++ b/qlite/src/table.vala
@@ -68,6 +68,11 @@ public class Table {
return db.update(this);
}
+ public UpsertBuilder upsert() throws DatabaseError {
+ ensure_init();
+ return db.upsert(this);
+ }
+
public DeleteBuilder delete() throws DatabaseError {
ensure_init();
return db.delete().from(this);