Table at a read timestamp
Create a Spanner session on the selected database using the reading principal. Mount@bijectionhq/app-rest once
per table and read timestamp. Pass as receivers.provider a receiver bound to the session’s resource
name with the :executeSql suffix.
spanner.data or cloud-platform OAuth
scope and access to the table. The installer owns the session and its cleanup.
Bind the receiver and the mount under the same data label.
Select a UTC timestamp within the database’s version-retention interval.
Change streams
Enable a change stream and create a reading session on its database. Mount@bijectionhq/app-documents with the data label.
Follow the Google stream mount example,
use spannerStream(credential, data) from that package,
and pass it as provider. The receiver and the mount use the
same label. Grant the principal access to query the
change stream using the spanner.data or cloud-platform scope. The installer
owns session creation and cleanup.
Seal the following JSON in the receiver credential.
postgreSql for the PostgreSQL
dialect.
source.health and source.partitions before
resetting. Use a new mount when changing the sealed session or start contract.
Spanner change stream queries and lineage