diff options
author | Marvin W <git@larma.de> | 2017-08-26 00:05:36 +0200 |
---|---|---|
committer | Marvin W <git@larma.de> | 2017-08-27 14:52:10 +0200 |
commit | ad033beea82a4ba20da71220966b80d5f674428f (patch) | |
tree | 91d18a157b78f09ffb0c502c431a7de720d925c6 /qlite/src/table.vala | |
parent | 8533ba645046e03378d7b9fd3048f15c05f332f7 (diff) | |
download | dino-ad033beea82a4ba20da71220966b80d5f674428f.tar.gz dino-ad033beea82a4ba20da71220966b80d5f674428f.zip |
qlite: add upsert support
Diffstat (limited to 'qlite/src/table.vala')
-rw-r--r-- | qlite/src/table.vala | 5 |
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); |