surrealpatch/src/sql/value/array.rs

20 lines
399 B
Rust
Raw Normal View History

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