commit | 7f4dd11682186f6c2426ff9b7f6075b3c409cba1 | [log] [tgz] |
---|---|---|
author | Neels Hofmeyr <neels@hofmeyr.de> | Thu Oct 31 21:23:10 2019 +0100 |
committer | laforge <laforge@osmocom.org> | Tue Nov 12 16:23:48 2019 +0000 |
tree | a404c013b73878b7eff0800f5c834b414e628b86 | |
parent | a8045daeef048ee1181f2a3c9bc15e7cd6c1dfca [diff] |
db.c: code dup: add db_run_statements() for arrays of statements The db bootstrap as well as the upgrade code all execute a number of statements, and have massive code dup around each statement execution. Instead have one db_run_statements() that takes an array of strings and runs all. Change-Id: I2721dfc0a9aadcc7f5ac81a1c0fa87452098996f