Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions crates/duckdb/src/core/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@ impl Inserter<&str> for FlatVector {
}
}

impl Inserter<&String> for FlatVector {
fn insert(&self, index: usize, value: &String) {
self.insert(index, value.as_str());
}
}

impl Inserter<&[u8]> for FlatVector {
fn insert(&self, index: usize, value: &[u8]) {
let value_size = value.len();
Expand All @@ -159,6 +165,12 @@ impl Inserter<&[u8]> for FlatVector {
}
}

impl Inserter<&Vec<u8>> for FlatVector {
fn insert(&self, index: usize, value: &Vec<u8>) {
self.insert(index, value.as_slice());
}
}

/// A list vector.
pub struct ListVector {
/// ListVector does not own the vector pointer.
Expand Down
Loading