The CDC_REC_TABSCHEMA record
Describes the table from which data is being captured.
Section | Size | Description |
---|---|---|
User data | 4 bytes | The table identifier that was specified in the cdc_startcapture() function for the table being captured. |
Flags | 4 bytes | Must be 0. |
Fixed-length size | 4 bytes | The number of bytes of data in fixed-length columns in the table. |
Fixed-length columns | 4 bytes | The number of fixed-length columns in the table
being captured. A 0 indicates that there are no fixed-length columns. |
Variable-length columns | 4 bytes | The number of variable-length columns in the
table being captured. A 0 indicates that there are no variable-length columns. |
Column names and data types | variable byte length | A comma-separated list of column names and data
types in UTF-8 format. The column list conforms to the syntax of the
column list in a CREATE TABLE statement. Names of any fixed-length columns appear before names of any variable-length columns. The number of columns equals the number of fixed-length columns plus the number of variable-length columns. |