pub const DATABASE: ModuleSchema;Expand description
database: querying, and connections a host keeps.
A row is a String because the runtime has no way to describe a row’s
columns: a typed row would need a host type with fields the boundary
checks, and it checks a declared type’s name only. One Array<String> of
rows is what a host can honestly hand back today.
query reads. A statement that changes stored data would be a separate
operation with a separate Effect, and this module does not ship one:
an execute whose only implementation is a fake would be a promise that
data was written somewhere.
The connection is task-safe. What a handle names lives behind the host’s
own lock, so two tasks holding the same handle take turns rather than
racing — which is exactly the condition the Language Card puts on a host
resource crossing a task boundary. examples/callbacks/main.cove depends
on it: the repository is captured by handlers that run in request tasks.