Use SQL UPSERT clause when updating contacts

This saves a round trip in the common case of a contact already
existing. Requires SQLite 3.24 at a minimum, so bump it in meson.build.
This commit is contained in:
Michael Gratton 2019-10-25 15:51:13 +11:00
parent 3e7a9daccc
commit 12d0cced35
2 changed files with 16 additions and 25 deletions

View file

@ -59,7 +59,7 @@ target_webkit = '2.24'
glib = dependency('glib-2.0', version: '>=' + target_glib)
gmime = dependency('gmime-2.6', version: '>= 2.6.17')
gtk = dependency('gtk+-3.0', version: '>=' + target_gtk)
sqlite = dependency('sqlite3', version: '>= 3.12')
sqlite = dependency('sqlite3', version: '>= 3.24')
webkit2gtk = dependency('webkit2gtk-4.0', version: '>=' + target_webkit)
# Secondary deps - keep sorted alphabetically