fluidattacks-database-core-domain 0.1.0

Database core functional core: database-agnostic table identifiers and types (no I/O)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use alloc::vec::Vec;

use super::error::SchemaError;
use super::schema::Schema;
use crate::cell::RawValue;

pub trait Table {
    /// The columns and key of the table.
    fn schema() -> Result<Schema, SchemaError>;

    /// One row, in the order of the schema columns.
    fn values(self) -> Vec<RawValue>;
}