We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The text was updated successfully, but these errors were encountered:
是在子线程处理的FLDISPATCH_ASYNC_GLOBAL
Sorry, something went wrong.
这个FLDISPATCH_ASYNC_GLOBAL 是我给你添加的,你的代码没有这句
😯谢谢~
这边插入数据库的时候是必须添加FLDBID这个字段的吗
No branches or pull requests
__block BOOL success = true;
__weak typeof(self) weakSelf = self;
FLDISPATCH_ASYNC_GLOBAL(^{
__strong typeof(weakSelf) strongSelf = weakSelf;
//把任务包装到事务里
[FLCURRENTDBQUEUE inTransaction:^(FMDatabase *db, BOOL *rollback){
success = [strongSelf fl_insert:db modelArr:modelArr autoCloseDB:YES];
complete(strongSelf,success);
//如果有错误 返回
if (!success){
*rollback = YES;
return;
}
}];
});
}
The text was updated successfully, but these errors were encountered: