Skip to main content

Module compat

Module compat 

Source
Expand description

Compatibility stubs for types referenced by the upstream parser code.

The SurrealDB parser references several engine-internal types. This module provides minimal stubs or re-exports to satisfy compilation.

These stubs are stable — they only change when SurrealDB adds new types to the parser AST, which is rare. When it happens, CI fails with “cannot find type X” and you add one line here.

Re-exports§

pub use capabilities::ExperimentalTarget;

Modules§

capabilities
catalog
Stubs for catalog types used in parser AST (DEFINE TABLE/INDEX/EVENT etc.)
dbs
Stub for dbs types
err
Minimal error stub
fmt
fmt helpers not yet in surrealdb-types 3.0 (added in 3.1)
types
Re-exports from surrealdb-types with the Public* aliases that surrealdb-core uses.
val
Re-exports from surrealdb-types matching crate::val::* paths in upstream code.

Structs§

Capabilities
Minimal Capabilities stub (parser only needs feature flags).

Functions§

decimal_from_str_normalized
Free function replacement for Decimal::from_str_normalized (not in surrealdb-types 3.0.4)