Skip to main content

Crate bicdb_script

Crate bicdb_script 

Source
Expand description

TypeScript is compiled at publication; workers execute stored JavaScript.

Structs§

CompiledScript
Immutable compilation receipt. OXC checks syntax and binding semantics, not TypeScript’s full type system. Host boundaries validate values at runtime.
ExecutionFailure
An unhandled exception preserves a host origin only when it is the exact exception object created for that host call. Messages and copied properties cannot confer origin; caught failures followed by normal results remain normal.
HostFailure
Trusted host failure. The optional origin is private to this invocation’s native caller and is never serialized into guest-visible JSON or properties.
Limits
ScriptError

Functions§

compile_typescript
execute
Fresh QuickJS VM without filesystem, network, timers, Node globals or module loader. Every side effect passes through the trusted host, never event data. The host must bound blocking calls and enforce capabilities and transactions.
execute_entry
Same sandbox as execute, calling the global function entry(event) instead of workflow(event). The entry may return a value or a promise.
execute_entry_with_host_origins
Execute with native exception identity tracking. Guest JavaScript cannot mint an origin by raising an error string, SQLSTATE, property, or copied exception.
is_entry_name
True when name can name a plain global JavaScript function.