surrealdb-core 3.2.3

A scalable, distributed, collaborative, document-graph database, for the realtime web
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Meta functions (aliases for record functions)

use crate::exec::function::FunctionRegistry;
use crate::{define_pure_function, register_functions};

define_pure_function!(MetaId, "meta::id", (record: Any) -> Any, crate::fnc::record::id);
define_pure_function!(MetaTb, "meta::tb", (record: Any) -> String, crate::fnc::record::tb);

pub fn register(registry: &mut FunctionRegistry) {
	register_functions!(registry, MetaId, MetaTb);
}