Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ChangeStreamRecord

import type { ChangeStreamRecord } from "https://googleapis.deno.dev/v1/spanner:v1.ts";

Spanner Change Streams enable customers to capture and stream out changes to their Spanner databases in real-time. A change stream can be created with option partition_mode='IMMUTABLE_KEY_RANGE' or partition_mode='MUTABLE_KEY_RANGE'. This message is only used in Change Streams created with the option partition_mode='MUTABLE_KEY_RANGE'. Spanner automatically creates a special Table-Valued Function (TVF) along with each Change Streams. The function provides access to the change stream's records. The function is named READ_ (where is the name of the change stream), and it returns a table with only one column called ChangeRecord.

interface ChangeStreamRecord {
dataChangeRecord?: DataChangeRecord;
heartbeatRecord?: HeartbeatRecord;
partitionEndRecord?: PartitionEndRecord;
partitionEventRecord?: PartitionEventRecord;
partitionStartRecord?: PartitionStartRecord;
}

§Properties

§
dataChangeRecord?: DataChangeRecord
[src]

Data change record describing a data change for a change stream partition.

§
heartbeatRecord?: HeartbeatRecord
[src]

Heartbeat record describing a heartbeat for a change stream partition.

§
partitionEndRecord?: PartitionEndRecord
[src]

Partition end record describing a terminated change stream partition.

§
partitionEventRecord?: PartitionEventRecord
[src]

Partition event record describing key range changes for a change stream partition.

§
partitionStartRecord?: PartitionStartRecord
[src]

Partition start record describing a new change stream partition.