Re-exports
pub use pgmacro;
pub use plugin::logic_delete::LogicDelete;
pub use plugin::logic_delete::LogicDeletePlugin;
pub use tokio_postgres;
pub use wrapper::Wrapper;
Modules
Structs
An asynchronous PostgreSQL client.
A MakeTlsConnect
and TlsConnect
implementation which simply returns an error.
A row of data returned from the database by a query.
Constants
Traits
A trait for types that can be converted into Postgres values.
Functions
1、需要定义一个 trait fetch_result{} 用于赋值返回值与 新增修改的宏 进行分离
主要目的需要查询数据库数据回来进行计算的业务。定义返回值,单表使用比较多
fetch
fetch_one
字符串左右新增百分号
字符串左新增百分号
字符串左新增百分号
通过唯一ID执行删除操作
通过一个字段执行删除操作
执行保存操作,执行insert操作
设置无逻辑删除的表
执行更新操作,执行update操作