Module proof_of_sql::base::database
source · Expand description
Module with database related functionality. In particular, this module contains the
accessor traits and the OwnedTable
type along with some utility functions to convert
between Arrow and OwnedTable
.
Modules§
- Utility functions for creating OwnedTables and OwnedColumns. These functions are primarily intended for use in tests.
- Contains traits for scalar <-> i256 conversions
Structs§
- This type is used to represent the metadata of a column in a table. Namely: it’s name and type.
- Reference of a SQL column
- A table of data, with schema included. This is simply a map from
Identifier
toOwnedColumn
, where columns order matters. This is primarily used as an internal result that is used before converting to the final result in either Arrow format or JSON. This is the analog of an arrow RecordBatch. - Expression for an SQL table
Enums§
- Errors caused by conversions between Arrow and owned types.
- Represents a read-only view of a column in an in-memory, column-oriented database.
- Errors from operations on columns.
- Represents the supported data types of a column in an in-memory, column-oriented database.
- Errors from evaluation of
Expression
s. - Represents a literal value.
- Errors cause by conversions between Arrow and owned types.
- Supported types for OwnedColumn
- Errors from operations related to
OwnedColumn
s.
Traits§
- This trait is used to provide utility functions to convert ArrayRefs into proof types (Column, Scalars, etc.)
- Access commitments of database columns.
- Access database columns of an in-memory table span.
- Access metadata of a table span in a database.
- Access tables and their schemas in a database.
- Extension trait for Vec
to convert it to an Arrow array
Functions§
- Determine the output type of an add or subtract operation if it is possible to add or subtract the two input types. If the types are not compatible, return an error.
- Determine the output type of a division operation if it is possible to multiply the two input types. If the types are not compatible, return an error.
- Determine the output type of a multiplication operation if it is possible to multiply the two input types. If the types are not compatible, return an error.
Type Aliases§
- Result type for column operations
- Result type for expression evaluation
- Result type for operations related to
OwnedColumn
s.