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

Function schema

nodedb/src/engine/array/store/catalog.rs:457–475  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

455 use tempfile::TempDir;
456
457 fn schema() -> Arc<ArraySchema> {
458 Arc::new(
459 ArraySchemaBuilder::new("a")
460 .dim(DimSpec::new(
461 "x",
462 DimType::Int64,
463 Domain::new(DomainBound::Int64(0), DomainBound::Int64(15)),
464 ))
465 .dim(DimSpec::new(
466 "y",
467 DimType::Int64,
468 Domain::new(DomainBound::Int64(0), DomainBound::Int64(15)),
469 ))
470 .attr(AttrSpec::new("v", AttrType::Int64, true))
471 .tile_extents(vec![4, 4])
472 .build()
473 .unwrap(),
474 )
475 }
476
477 #[test]
478 fn open_creates_directory_and_empty_manifest() {

Calls 4

buildMethod · 0.45
tile_extentsMethod · 0.45
attrMethod · 0.45
dimMethod · 0.45