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
12
13
14
15
use js::{Class, Ctx, Result};

pub mod duration;
pub mod file;
pub mod record;
pub mod uuid;

pub fn init(ctx: &Ctx<'_>) -> Result<()> {
	let globals = ctx.globals();
	Class::<duration::Duration>::define(&globals)?;
	Class::<record::Record>::define(&globals)?;
	Class::<uuid::Uuid>::define(&globals)?;
	Class::<file::File>::define(&globals)?;
	Ok(())
}