MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / strict_collection

Function strict_collection

nodedb-sql/src/resolver/columns.rs:343–365  ·  view source on GitHub ↗
(name: &str, columns: Vec<&str>)

Source from the content-addressed store, hash-verified

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 {

Calls 1

collectMethod · 0.80