@dxos/echo
    Preparing search index...

    Function getDatabase

    • Get the database the type entity belongs to, or undefined if it is an in-memory declaration (Type.makeObject / Type.makeRelation result) not yet attached to a database. Mirrors Obj.getDatabase / Relation.getDatabase.

      Database attachment is the canonical discriminator between in-memory and in-database type entities — both are live reactive TypeSchema instances and are otherwise indistinguishable.

      Parameters

      Returns undefined | Database.Database

      O(1) slot read.