Ok so I understand that fmdb is totally outdated, and core data is where it s at, but for now, I just need to tweak an app I m working on that uses fmdb to read from a sqlite db in the resources folder.
I need to be able to write to my db. What is the best way to execute queries? I have tried doing the same thing that I do to read from a db:
FMResultSet * set = [[UIApp database] executeQuery:[customQueries selectAll], book];
Where I change the string selectAll from being a SELECT statement into being a INSERT INTO statement and I pass it the variable book to insert, but that doesn t seem to be working...
What am I missing? What do I nee to do to be able to write to my sqlite db?? Thanks!