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

Function crm_schema

nodedb-strict/src/encode.rs:338–353  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

336 use super::*;
337
338 fn crm_schema() -> StrictSchema {
339 StrictSchema::new(vec![
340 ColumnDef::required("id", ColumnType::Int64).with_primary_key(),
341 ColumnDef::required("name", ColumnType::String),
342 ColumnDef::nullable("email", ColumnType::String),
343 ColumnDef::required(
344 "balance",
345 ColumnType::Decimal {
346 precision: 18,
347 scale: 4,
348 },
349 ),
350 ColumnDef::nullable("active", ColumnType::Bool),
351 ])
352 .unwrap()
353 }
354
355 #[test]
356 fn encode_basic_row() {

Callers 7

encode_basic_rowFunction · 0.70
encode_with_nullsFunction · 0.70
encode_null_violationFunction · 0.70
encode_type_mismatchFunction · 0.70

Calls

no outgoing calls

Tested by 7

encode_basic_rowFunction · 0.56
encode_with_nullsFunction · 0.56
encode_null_violationFunction · 0.56
encode_type_mismatchFunction · 0.56