isIdentityColumn checks if a column is an identity column.
(column *storepb.ColumnMetadata)
| 1518 | |
| 1519 | // isIdentityColumn checks if a column is an identity column. |
| 1520 | func isIdentityColumn(column *storepb.ColumnMetadata) bool { |
| 1521 | return column.IdentityGeneration == storepb.ColumnMetadata_ALWAYS || |
| 1522 | column.IdentityGeneration == storepb.ColumnMetadata_BY_DEFAULT |
| 1523 | } |
| 1524 | |
| 1525 | // buildIdentityColumnMap builds a map of identity columns for the entire database. |
| 1526 | // Key format: "schemaName.tableName.columnName" -> true |
no outgoing calls
no test coverage detected