2022-05-14 12:35:08 +00:00
|
|
|
use crate::ctx::Context;
|
2022-02-06 01:14:56 +00:00
|
|
|
use crate::dbs::Options;
|
|
|
|
use crate::dbs::Statement;
|
|
|
|
use crate::doc::Document;
|
|
|
|
use crate::err::Error;
|
|
|
|
|
2022-02-13 19:03:00 +00:00
|
|
|
impl<'a> Document<'a> {
|
2022-02-06 01:14:56 +00:00
|
|
|
pub async fn erase(
|
|
|
|
&mut self,
|
2023-04-24 20:51:35 +00:00
|
|
|
_ctx: &Context<'_>,
|
|
|
|
_opt: &Options,
|
2022-05-13 20:46:56 +00:00
|
|
|
_stm: &Statement<'_>,
|
2022-02-06 01:14:56 +00:00
|
|
|
) -> Result<(), Error> {
|
2023-07-06 14:57:42 +00:00
|
|
|
self.current.doc.to_mut().clear()
|
2022-02-06 01:14:56 +00:00
|
|
|
}
|
|
|
|
}
|