[][src]Crate restq

Re-exports

pub use sql_ast as sql;
pub use ast::ddl::ColumnDef;
pub use ast::parser;
pub use ast::parser::filter_expr;
pub use ast::parser::select;
pub use ast::parser::utils::bytes_to_chars;
pub use ast::parser::utils::space;
pub use ast::parser::utils::to_chars;
pub use ast::ColumnName;
pub use ast::Select;
pub use ast::TableDef;
pub use chrono;
pub use data_value::DataValue;
pub use multi_stmt::MultiStatement;
pub use plain_data::PlainData;
pub use pom;
pub use stmt_data::StmtData;

Modules

ast
data_value
multi_stmt
plain_data

Plain csv data contains only the table definition and the csv data

stmt_data

Structs

CsvRows
TableName
Uuid

A Universally Unique Identifier (UUID).

Enums

DataType

restq supports comprehensive data types based on rust and postgresql type, combined together format: <data_type>? ? - indicates it is optional, nullable in database context example: text? - nullable text text(8..) - text with at least 8 characters long text(..255) - text must not be more than 255 characters long. u32(1) - u32 with default value of 1 u32(>10) - check value should be greater than 10 u32(10<column<=20) - check the value should be greater than 10 and less than or equal to 20 u32(<discount) - check value should be lesser than discount column f32(0.0) - f32 with 0.0 as the default value

Error
Expr
Operator
TableError

Functions

parse_select_chars

parses a typical http url into a select statement

table_def

example: product{*product_id:s32,@name:text,description:text,updated:utc,created_by(users):u32,@is_active:bool}