surrealpatch/core/src/fnc/meta.rs

12 lines
235 B
Rust
Raw Normal View History

use crate::err::Error;
use crate::sql::thing::Thing;
use crate::sql::value::Value;
pub fn id((arg,): (Thing,)) -> Result<Value, Error> {
Ok(arg.id.into())
}
pub fn tb((arg,): (Thing,)) -> Result<Value, Error> {
Ok(arg.tb.into())
}