Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added async methods for FMDatabaseQueue #372

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added async methods for FMDatabaseQueue #372

wants to merge 1 commit into from

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.

None yet

2 participants