pub struct SqlQueryOperation { /* private fields */ }
Implementations§
Source§impl SqlQueryOperation
impl SqlQueryOperation
Sourcepub fn timeout_ms(self, timeout_ms: u64) -> Self
pub fn timeout_ms(self, timeout_ms: u64) -> Self
针对此次操作设置超时时间,单位为毫秒
Source§impl SqlQueryOperation
impl SqlQueryOperation
Sourcepub async fn send<T>(self) -> OtsResult<SqlQueryResponse<T>>where
T: TryFromBytes,
pub async fn send<T>(self) -> OtsResult<SqlQueryResponse<T>>where
T: TryFromBytes,
注意:这里使用 SQL 查询之后的数据就没有再区分主键和普通列了, 需要调用者根据实际需求将列中的主键数据提取出来
Trait Implementations§
Source§impl Clone for SqlQueryOperation
impl Clone for SqlQueryOperation
Source§fn clone(&self) -> SqlQueryOperation
fn clone(&self) -> SqlQueryOperation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SqlQueryOperation
impl !RefUnwindSafe for SqlQueryOperation
impl Send for SqlQueryOperation
impl Sync for SqlQueryOperation
impl Unpin for SqlQueryOperation
impl !UnwindSafe for SqlQueryOperation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more