How do I use sqlite3 PRAGMA user_version in Objective-c?

Posted by mobibob on Stack Overflow See other posts from Stack Overflow or by mobibob
Published on 2010-04-17T19:56:23Z Indexed on 2010/04/17 20:03 UTC
Read the original article Hit count: 697

Filed under:
|
|
|

I am trying to check the user_version of the sqlite DB. I have an admin tool to bump the version, but I don't understand the syntax of the pragma statement. I am expecting to test the value in an if-statement. Can someone provide a code sample? When I embed the pragma statement in my objective-c code, the compiler throws an error.

© Stack Overflow or respective owner

Related posts about sqlite3

Related posts about objective-c