reifydb-core 0.10.1

Core database interfaces and data structures for ReifyDB
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2026 ReifyDB

use reifydb_value::value::decimal::Decimal;

use crate::value::column::{
	builder::{ColumnBuilder, TypedBuilder},
	push::Push,
};

impl Push<Decimal> for ColumnBuilder {
	fn push(&mut self, value: Decimal) {
		match &mut self.inner {
			TypedBuilder::Decimal(builder) => builder.push(&value),
			_ => unreachable!("Push<Decimal> for ColumnBuilder with incompatible type"),
		}
	}
}