Skip to content

Conversation

@davbeck
Copy link

@davbeck davbeck commented May 5, 2015

These new methods add the option to return immediately and perform the operations on the queue.

- (void)inDatabase:(void (^)(FMDatabase *db))block async:(BOOL)async
- (void)inTransaction:(void (^)(FMDatabase *db, BOOL *rollback))block async:(BOOL)async
- (void)inDeferredTransaction:(void (^)(FMDatabase *db, BOOL *rollback))block async:(BOOL)async
- (void)inSavePoint:(void (^)(FMDatabase *db, BOOL *rollback))block async:(BOOL)async completion:(void(^)(NSError *error))completion

These new methods add the option to return immediately and perform the operations on the queue.

`- (void)inDatabase:(void (^)(FMDatabase *db))block async:(BOOL)async`
`- (void)inTransaction:(void (^)(FMDatabase *db, BOOL *rollback))block async:(BOOL)async`
`- (void)inDeferredTransaction:(void (^)(FMDatabase *db, BOOL *rollback))block async:(BOOL)async`
`- (void)inSavePoint:(void (^)(FMDatabase *db, BOOL *rollback))block async:(BOOL)async completion:(void(^)(NSError *error))completion`
@ccgus
Copy link
Owner

ccgus commented May 6, 2015

Thanks for doing this- I'll be doing something very similar to this for FMDB 3.0- though it'll probably just be another method call instead of adding a flag (which then would call another method internally, with a flag)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants