Skip to main content

fluidattacks_database_core_domain/table/
definition.rs

1use alloc::vec::Vec;
2
3use super::error::SchemaError;
4use super::schema::Schema;
5use crate::cell::RawValue;
6
7pub trait Table {
8    /// The columns and key of the table.
9    fn schema() -> Result<Schema, SchemaError>;
10
11    /// One row, in the order of the schema columns.
12    fn values(self) -> Vec<RawValue>;
13}