The read-only projection of a Database that a db.derive callback receives. It exposes only the auto-trackable read surface —
db.derive
get
read
select
resources
indexes.<name>.find
findRange
archetypes.<name>.components
id
observe
queryArchetypes
locate
columns
rowCount
insert
services
computed
extend
reset
toData
Because the surface is narrowed structurally, misuse is a compile error rather than a value that must be guarded / thrown on at runtime.
The read-only projection of a Database that a
db.derivecallback receives. It exposes only the auto-trackable read surface —get,read,selectresourcesindexes.<name>.find/findRange/getarchetypes.<name>.components/id— and structurally OMITS everything a derived computation must not touch:observe(a derive subscribes to what it reads for you)queryArchetypes,locate, and per-archetypecolumns/rowCount/insert/ row readsservices/computed/ lifecycle (extend,reset,toData, …)Because the surface is narrowed structurally, misuse is a compile error rather than a value that must be guarded / thrown on at runtime.