ObjC Test

C code posted by shauber
created at 29 Sep 19:47

Edit | Back
1
2
3
4
5
6
7
8
9
10
// Setup database location
        NSString *dbName = @"cartracker.sqlite3";
        NSArray *documentPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
        NSString *documentsDir = [documentPaths objectAtIndex:0];
        NSString *databasePath = [documentsDir stringByAppendingPathComponent:dbName];

        //Run Migrations
        [FmdbMigrationManager executeForDatabasePath:databasePath withMigrations:migrations];


476 Bytes in 34 ms with coderay