sql_middleware/
helpers.rs

1//! Helper utilities for testing and development.
2
3use crate::middleware::{CustomDbRow, RowValues};
4use std::sync::Arc;
5
6/// Create a test row with the given column names and values.
7///
8/// This is a utility function to help with testing by creating
9/// `CustomDbRow` instances with the specified data.
10#[must_use]
11pub fn create_test_row(column_names: Vec<String>, values: Vec<RowValues>) -> CustomDbRow {
12    CustomDbRow::new(Arc::new(column_names), values)
13}