surrealpatch/lib/src/doc/erase.rs
2023-07-06 14:57:42 +00:00

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()
}
}