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

Function simple_schema

nodedb-test-support/src/array_sync.rs:33–46  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

31/// One-dimensional Int64 schema over [0, 99] with attribute "v" (Float64).
32#[allow(dead_code)]
33pub fn simple_schema(name: &str) -> ArraySchema {
34 ArraySchema {
35 name: name.into(),
36 dims: vec![DimSpec::new(
37 "x",
38 DimType::Int64,
39 Domain::new(DomainBound::Int64(0), DomainBound::Int64(99)),
40 )],
41 attrs: vec![AttrSpec::new("v", AttrType::Float64, true)],
42 tile_extents: vec![10],
43 cell_order: CellOrder::RowMajor,
44 tile_order: TileOrder::RowMajor,
45 }
46}
47
48/// Build a real Loro snapshot for `array_name` and return
49/// `(snapshot_bytes, schema_hlc)` suitable for `import_snapshot` calls.

Callers 2

build_schema_snapshotFunction · 0.70
register_catalog_entryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected