use crate::ctx::Context;
use crate::dbs::Statement;
use crate::dbs::{Options, Transaction};
use crate::doc::Document;
use crate::err::Error;
use crate::value::Value;
impl<'a> Document<'a> {
pub async fn create(
&mut self,
ctx: &Context<'_>,
opt: &Options,
txn: &Transaction,
stm: &Statement<'_>,
) -> Result<Value, Error> {
self.alter(ctx, opt, txn, stm).await?;
self.field(ctx, opt, txn, stm).await?;
self.reset(ctx, opt, txn, stm).await?;
self.clean(ctx, opt, txn, stm).await?;
self.allow(ctx, opt, txn, stm).await?;
self.store(ctx, opt, txn, stm).await?;
self.index(ctx, opt, txn, stm).await?;
self.table(ctx, opt, txn, stm).await?;
self.lives(ctx, opt, txn, stm).await?;
self.changefeeds(ctx, opt, txn, stm).await?;
self.event(ctx, opt, txn, stm).await?;
self.pluck(ctx, opt, txn, stm).await
}
}