[db] Use prepared statements for file insert, update and ping

Get rid of the SQL query strings, since they are prone to errors and are
probably also slower that using prepared statements.
This commit is contained in:
ejurgensen
2018-09-23 22:24:24 +02:00
parent 53d7005547
commit d3121f4ec7
5 changed files with 392 additions and 241 deletions

View File

@@ -25,8 +25,8 @@
* version of the database? If yes, then it is a minor upgrade, if no, then it
* is a major upgrade. In other words minor version upgrades permit downgrading
* forked-daapd after the database was upgraded. */
#define SCHEMA_VERSION_MAJOR 19
#define SCHEMA_VERSION_MINOR 12
#define SCHEMA_VERSION_MAJOR 20
#define SCHEMA_VERSION_MINOR 00
int
db_init_indices(sqlite3 *hdl);