Crate restq

source ·

Re-exports§

Modules§

Structs§

Enums§

  • 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