The qt sqlite3 driver only accepts a single statement per exec(). We can't split by ; due to the trigger statements. Thus, the pragmatic and dirty solution is to simply put a query per line.