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

Function schema

nodedb-array/src/query/project.rs:76–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74 use crate::types::domain::{Domain, DomainBound};
75
76 fn schema() -> ArraySchema {
77 ArraySchemaBuilder::new("g")
78 .dim(DimSpec::new(
79 "x",
80 DimType::Int64,
81 Domain::new(DomainBound::Int64(0), DomainBound::Int64(15)),
82 ))
83 .attr(AttrSpec::new("a", AttrType::Int64, true))
84 .attr(AttrSpec::new("b", AttrType::Float64, true))
85 .attr(AttrSpec::new("c", AttrType::String, true))
86 .tile_extents(vec![16])
87 .build()
88 .unwrap()
89 }
90
91 fn tile() -> SparseTile {
92 let s = schema();

Callers 1

tileFunction · 0.70

Calls 4

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

Tested by

no test coverage detected