title: Saving database changes into .db file with SQLite (Swift)
body: <p>In my Project I am opening an already existing database from a <code>.db</code> with <code>sqlite3_open</code>. This file was created with the command-line tool <code>sqlite3</code>. I am updating some rows in a table, which works fine, but those updates are only made in the temporary instance of the database. How can I also update my <code>.db</code> file for future runs of my project to work with updated data?</p>
  
  <p>Somebody asked <a href="https://stackoverflow.com/questions/29593741/saving-sqlite-database-with-swift">here</a> how to save a SQLite database in Swift. But the answer seems to me somehow unsatisfying, because the file should be written in the same format as created by <code>sqlite3</code>, so that it can be opened again via <code>sqlite3_open</code>.</p>
  
  <p>Is there maybe even a function presented by SQLite? I couldn't find anything for that...</p>