Create a mapped value from SQLite BLOB data
(&self, blob_data: &[u8])
| 273 | |
| 274 | /// Create a mapped value from SQLite BLOB data |
| 275 | pub fn create_from_blob(&self, blob_data: &[u8]) -> io::Result<MappedValue> { |
| 276 | if blob_data.is_empty() { |
| 277 | return Ok(MappedValue::Memory(Vec::new())); |
| 278 | } |
| 279 | |
| 280 | MappedValue::from_slice(blob_data, &self.config) |
| 281 | } |
| 282 | |
| 283 | /// Create a mapped value from large text data |
| 284 | pub fn create_from_text(&self, text_data: &str) -> io::Result<MappedValue> { |