Skip to content

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

@javenisme

Description

@javenisme

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);
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions