| 341 | use nodedb_types::PrimaryEngine; |
| 342 | |
| 343 | fn strict_collection(name: &str, columns: Vec<&str>) -> CollectionInfo { |
| 344 | CollectionInfo { |
| 345 | name: name.into(), |
| 346 | engine: EngineType::DocumentStrict, |
| 347 | columns: columns |
| 348 | .into_iter() |
| 349 | .map(|c| ColumnInfo { |
| 350 | name: c.into(), |
| 351 | data_type: SqlDataType::String, |
| 352 | nullable: true, |
| 353 | is_primary_key: false, |
| 354 | default: None, |
| 355 | raw_type: None, |
| 356 | }) |
| 357 | .collect(), |
| 358 | primary_key: None, |
| 359 | has_auto_tier: false, |
| 360 | indexes: Vec::new(), |
| 361 | bitemporal: false, |
| 362 | primary: PrimaryEngine::Document, |
| 363 | vector_primary: None, |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | fn schemaless_collection(name: &str) -> CollectionInfo { |
| 368 | CollectionInfo { |