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

Function schema

nodedb/src/engine/array/test_support.rs:23–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21use super::wal::ArrayPutCell;
22
23pub(super) fn schema() -> Arc<ArraySchema> {
24 Arc::new(
25 ArraySchemaBuilder::new("a")
26 .dim(DimSpec::new(
27 "x",
28 DimType::Int64,
29 Domain::new(DomainBound::Int64(0), DomainBound::Int64(15)),
30 ))
31 .dim(DimSpec::new(
32 "y",
33 DimType::Int64,
34 Domain::new(DomainBound::Int64(0), DomainBound::Int64(15)),
35 ))
36 .attr(AttrSpec::new("v", AttrType::Int64, true))
37 .tile_extents(vec![4, 4])
38 .build()
39 .unwrap(),
40 )
41}
42
43pub(super) fn aid() -> ArrayId {
44 ArrayId::new(TenantId::new(1), "g")

Calls 4

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

Tested by

no test coverage detected