Get the database the object belongs to. Accepts both reactive objects and snapshots.
org.dxos.echo.objGetDatabase applies: Reaching an object's database — to query, add, or remove — when the surrounding Space is not otherwise needed instead-of: getSpace(obj)?.db (resolving the whole Space just to read its .db) uses: getDatabase
getSpace(obj)?.db
.db
O(1) slot read.
Get the database the object belongs to. Accepts both reactive objects and snapshots.