2022-01-13 17:36:41 +00:00
|
|
|
use crate::dbs::Executor;
|
|
|
|
use crate::dbs::Options;
|
|
|
|
use crate::dbs::Runtime;
|
|
|
|
use crate::sql::idiom::Idiom;
|
|
|
|
use crate::sql::object::Object;
|
|
|
|
use crate::sql::value::Value;
|
|
|
|
|
|
|
|
impl Value {
|
2022-01-14 08:12:56 +00:00
|
|
|
pub async fn object(
|
|
|
|
&mut self,
|
|
|
|
ctx: &Runtime,
|
|
|
|
opt: &Options<'_>,
|
|
|
|
exe: &mut Executor,
|
|
|
|
path: &Idiom,
|
|
|
|
) {
|
2022-01-13 17:36:41 +00:00
|
|
|
let val = Value::from(Object::default());
|
2022-01-14 08:12:56 +00:00
|
|
|
self.set(ctx, opt, exe, path, val).await
|
2022-01-13 17:36:41 +00:00
|
|
|
}
|
|
|
|
}
|