title: Enabling foreign_keys=ON in sqlite3 through code
body: <p>I have added the relationship in few table one-one, one-many...</p>
  
  <p>I created database and tables programatically I want to enable foreign_keys for my tables,
  for which I am firing <code>sqlite3_excec(db,PRAGMA foreign_keys=ON,0,0,&amp;error)</code></p>
  
  <p>which is not working! it's creating text file instead of sqlite3.</p>
  
  <p>please let me know if any solution to enable <code>PRAGMA foreign_keys=ON;</code> in sqlite3</p>