Class SchemaDao

java.lang.Object
io.debezium.connector.spanner.db.dao.SchemaDao

public class SchemaDao extends Object
Provides functionality to read Spanner DB table and stream schema
  • Field Details

    • databaseClient

      private final com.google.cloud.spanner.DatabaseClient databaseClient
  • Constructor Details

    • SchemaDao

      public SchemaDao(com.google.cloud.spanner.DatabaseClient databaseClient)
  • Method Details

    • getSchema

      public SpannerSchema getSchema(com.google.cloud.Timestamp timestamp)
    • getSchema

      public SpannerSchema getSchema(com.google.cloud.Timestamp timestamp, Collection<String> tables)
    • getStream

      public ChangeStreamSchema getStream(com.google.cloud.Timestamp timestamp, String streamName)
    • readTablesInfo

      private com.google.cloud.spanner.ResultSet readTablesInfo(com.google.cloud.spanner.ReadOnlyTransaction tx, Collection<String> tables)
    • readChangeStreamInfo

      private com.google.cloud.spanner.ResultSet readChangeStreamInfo(com.google.cloud.spanner.ReadOnlyTransaction tx, String streamName)