[][src]Crate restq

Re-exports

pub use ast::ddl::table_def;
pub use ast::ddl::ColumnDef;
pub use ast::Select;
pub use ast::TableDef;
pub use chrono;
pub use data_value::DataValue;
pub use parser::filter_expr;
pub use parser::select;
pub use parser::utils::bytes_to_chars;
pub use parser::utils::space;
pub use parser::utils::to_chars;
pub use pom;
pub use stmt_data::StmtData;

Modules

ast
data_value
parser
plain_data

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

stmt_data

Structs

CsvRows

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
TableError

Functions

parse_select_chars

parses a typical http url into a select statement