Re-exports
pub extern crate mybatis_macro;
pub extern crate mybatis_sql;
pub use mybatis_core as core;
pub use crate::mybatis::AsSqlTag;
Modules
Types and traits for decoding values from the database.
Errorand Result types.
ObjectId
Macros
Structs
Mybatis Bool for example: let b = Bool::from(true); let b = Bool::from(“true”); let b = Bool::from(1);
Mybatis Bytes
Rust type Postgres type(s) chrono::NaiveDate DATE
Mybatis DateTime
Mybatis DateTime Utc
Mybatis Decimal
Json
TimeLocal Rust type Postgres type(s) chrono::NaiveTime TIME
Mybatis Timestamp Rust type Postgres type(s) time::PrimitiveDateTime TIMESTAMP time::OffsetDateTime TIMESTAMPTZ
Mybatis Timestamp Rust type Postgres type(s) time::OffsetDateTime TIMESTAMPTZ
Uuid
Enums
A generic error that represents all the ways a method can fail inside of mybatis::core.
Constants
Traits
convert Value to Value
the stmt replace str convert
Functions
Type Definitions
A specialized Result
type for mybatis::core.
proxy rbson::Document struct,support Deserializer, Serializer use Cow Optimize unnecessary clones This structure has a certain amount of computing power
Attribute Macros
html sql create macro,this macro use RB.py_fetch and RB.py_exec for example:
Mybatis Plus,You can define functionality using the following properties
#mybatis_plus
#[mybatis_plus(table_name:“biz_activity”)]
#[mybatis_plus(table_name:“biz_activity” | table_columns:“id,name,version,delete_flag” | formats_pg:“id:{}::uuid,name:{}::string”)]
pub struct BizActivity {
pub id: Option
auto create sql macro,this macro use RB.fetch_prepare and RB.exec_prepare
for example:
pub static RB:Lazy
support py_sql fn convert
py sql create macro,this macro use RB.py_fetch and RB.py_exec