690dd55a86
Co-authored-by: Gerard Guillemas Martos <gerard.guillemas@surrealdb.com>
11 lines
235 B
Rust
11 lines
235 B
Rust
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())
|
|
}
|