Crate mssql_quick

Source

Macros§

mscount
计数 ,返回 sql 语句
msdel
删除数据 ,返回 sql 语句。
msdelmany
批量删除数据,返回 sql 语句
msfind
查寻数据,返回 sql 语句
msget
获取一条数据,返回 sql 语句
msset
新增数据 ,返回 sql 语句。
mssetmany
批量新增数据 ,返回 sql 语句。
msupdate
1.通过id,更新数据 ,返回 sql 语句。
msupdatemany
1.单个条件,批量更新数据 ,返回 sql 语句。

Structs§

Client
Client is the main entry point to the SQL Server, providing query execution capabilities.
Compat
A compatibility layer that allows conversion between the tokio::io and futures-io AsyncRead and AsyncWrite traits.
Config
The Config struct contains all configuration information required for connecting to the database with a Client. It also provides the server address when connecting to a TcpStream via the get_addr method.
MssqlQuick
MssqlQuickCount
mscount 返回
MssqlQuickSet
Regex
A compiled regular expression for matching Unicode strings.
Row
A row of data from a query.
Sql
Sql(String),会将 String 识别为 sql 语句,而不是参数值
TcpStream
A TCP stream between a local and a remote socket.

Enums§

ColumnType
The type of the column.
EncryptionLevel
The configured encryption level specifying if encryption is required
Error
A unified error enum that contains several errors that might occurr during the lifecycle of this driver
Value
Represents any valid JSON value.

Traits§

TokioAsyncWriteCompatExt
Extension trait that allows converting a type implementing tokio::io::AsyncWrite to implement futures_io::AsyncWrite.

Functions§

from_str
Deserialize an instance of type T from a string of JSON text.
ms_run_vec
运行sql语句,返回想要的结果
to_string
Serialize the given data structure as a String of JSON.