\brief Copies binary data to 1-indexed query parameter. When using the unsafe methods, the data must not be changed or freed until this statement is Reset() or finalized.
| 252 | /// When using the unsafe methods, the data must not be changed or |
| 253 | /// freed until this statement is Reset() or finalized. |
| 254 | void BindBlob(int parameter, const StringPiece& blob) { |
| 255 | Update(sqlite3_bind_blob64(stmt_, parameter, blob.data(), blob.size(), |
| 256 | SQLITE_TRANSIENT), |
| 257 | parameter); |
| 258 | size_ += blob.size(); |
| 259 | } |
| 260 | void BindBlob(const char* parameter, const StringPiece& blob) { |
| 261 | BindBlob(GetParameterIndex(parameter), blob); |
| 262 | } |