MCPcopy Create free account
hub / github.com/erans/pgsqlite / create_from_blob

Method create_from_blob

src/protocol/memory_mapped.rs:275–281  ·  view source on GitHub ↗

Create a mapped value from SQLite BLOB data

(&self, blob_data: &[u8])

Source from the content-addressed store, hash-verified

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> {

Callers 3

handle_blob_valueMethod · 0.80
handle_text_valueMethod · 0.80

Calls 1

is_emptyMethod · 0.45

Tested by 1