Crate mysql_quick
source ·Macros§
- 计数 ,返回 sql 语句,参数同 find 类似。
- 1.通过id,删除数据,返回 sql 语句。
- 批量删除数据,返回 sql 语句
- 查寻数据,返回 sql 语句
- 获取一条数据,返回 sql 语句
- 新增数据 ,返回 sql 语句。
- 批量新增数据 ,返回 sql 语句。
- 1.通过id,更新数据 ,返回 sql 语句。
- 批量更新数据 ,返回 sql 语句。
Structs§
- Pooled mysql connection.
- A compiled regular expression for searching Unicode haystacks.
- Sql(String),会将 String 识别为 sql 语句,而不是参数值
- MySql transaction options.
Enums§
- Represents any valid JSON value.
Constants§
- 悲观锁,用于抢单什么的
- 常用的 mysql 锁类型。直接加在 sql 语句后面
Traits§
- Something, that eventually is a
Statement
in the context of aT: Queryable
. - Helper trait for batch statement execution.
- MySql prepared statement query.
- Things that may be used as an index of a row column.
- Trait to convert
Row
into a tuple ofFromValue
implementors up to arity 12. - Implement this trait to convert a value to some type.
- Trait for protocol markers
crate::Binary
andcrate::Text
. - Queryable object.
- MySql text query.
- Helper, that constructs
QueryWithParams
.
Functions§
- Deserialize an instance of type
T
from a string of JSON text. - 运行sql语句,返回最近一条语句的数据 id,如果上没有,则返回0 用于:
myset、mydel、mysetmany、myupdate、myupdatemany
- 事务执行
- 事务执行
- 运行sql语句,返回结果列表
- Serialize the given data structure as a String of JSON.
Derive Macros§
- Derives
FromRow
. Seemysql_common
crate-level docs for more info. - Derives
FromValue
. Seemysql_common
crate-level docs for more info.