@adobe/data - v0.10.30
    Preparing search index...

    Variable toSystemDatabaseConst

    toSystemDatabase: <
        P extends Database.Plugin<any, any, any, any, any, any, any, any, any>,
    >(
        db: FromPlugin<P>,
    ) => ToSystemDatabase<P> = _toSystemDatabase

    Type declaration

      • <P extends Database.Plugin<any, any, any, any, any, any, any, any, any>>(
            db: FromPlugin<P>,
        ): ToSystemDatabase<P>
      • Re-view a created database as its system surface — the same Database & { store } type a SystemDeclaration.create receives — exposing the writable store (and writable services).

        Identity at runtime: createDatabase always attaches the store, so this only reveals it to the type system. It is the widening twin of UIService.restrict (which narrows a full database to the read-only UI view). Direct store access does NOT flow through observable transactions — intended for systems, and for test-support (a conformance projection seeding the store directly).

        Cast-free by the same overload + broadened-impl shape restrict uses: the public overload returns the widened ToSystemDatabase<P>, which is assignable to the impl's plain Database return, so the identity body type-checks.

        Type Parameters

        • P extends Database.Plugin<any, any, any, any, any, any, any, any, any>

        Parameters

        Returns ToSystemDatabase<P>