Files
sqlx_core
any
connection
common
ext
io
migrate
mssql
connection
io
options
protocol
types
mysql
connection
io
options
protocol
connect
response
statement
text
types
net
pool
postgres
connection
io
message
options
types
sqlite
connection
options
statement
types
types
>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use bytes::{Buf, Bytes}; use crate::error::Error; #[derive(Debug)] pub(crate) struct Order { columns: Bytes, } impl Order { pub(crate) fn get(buf: &mut Bytes) -> Result<Self, Error> { let len = buf.get_u16_le(); let columns = buf.split_to(len as usize); Ok(Self { columns }) } }