MCPcopy Create free account
hub / github.com/NyxCode/ormx / reload

Method reload

ormx/src/lib.rs:147–155  ·  view source on GitHub ↗

Refresh this row, querying all columns from the database.

(
        &'a mut self,
        db: impl Executor<'c, Database = Db> + 'a,
    )

Source from the content-addressed store, hash-verified

145
146 /// Refresh this row, querying all columns from the database.
147 fn reload<'a, 'c: 'a>(
148 &'a mut self,
149 db: impl Executor<'c, Database = Db> + 'a,
150 ) -> impl Future<Output = Result<()>> + Send + 'a {
151 async move {
152 *self = Self::get(db, self.id()).send().await?;
153 Ok(())
154 }
155 }
156}
157
158pub trait Delete

Callers 3

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 2

getFunction · 0.85
sendMethod · 0.80

Tested by

no test coverage detected