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

SQLight 针对Blob格式数据绑定的支持 #2

Open
javenisme opened this issue Dec 21, 2014 · 0 comments
Open

SQLight 针对Blob格式数据绑定的支持 #2

javenisme opened this issue Dec 21, 2014 · 0 comments

Comments

@javenisme
Copy link

Hi Gaosboy,
如何利用Sqlight绑定blob格式数据?在代码中并没有相关封装。请协助

if (nil != bind) {
    for (int i = 0; i < [bind count]; i ++) {
        sqlite3_bind_text(compiledStatement,
                          i + 1,
                          [[NSString stringWithFormat:@"%@", [bind objectAtIndex:i]] UTF8String],
                          -1,
                          SQLITE_TRANSIENT);
    }
}
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

No branches or pull requests

1 participant