690dd55a86
Co-authored-by: Gerard Guillemas Martos <gerard.guillemas@surrealdb.com>
16 lines
316 B
Rust
16 lines
316 B
Rust
use crate::ctx::Context;
|
|
use crate::dbs::Options;
|
|
use crate::dbs::Statement;
|
|
use crate::doc::Document;
|
|
use crate::err::Error;
|
|
|
|
impl<'a> Document<'a> {
|
|
pub async fn erase(
|
|
&mut self,
|
|
_ctx: &Context<'_>,
|
|
_opt: &Options,
|
|
_stm: &Statement<'_>,
|
|
) -> Result<(), Error> {
|
|
self.current.doc.to_mut().clear()
|
|
}
|
|
}
|