Helper function to get the primary key list.
(schema sql.Schema)
| 642 | |
| 643 | // Helper function to get the primary key list. |
| 644 | func getPrimaryKeyList(schema sql.Schema) string { |
| 645 | pks := make([]string, 0, 1) |
| 646 | for _, col := range schema { |
| 647 | if col.PrimaryKey { |
| 648 | pks = append(pks, catalog.QuoteIdentifierANSI(col.Name)) |
| 649 | } |
| 650 | } |
| 651 | return strings.Join(pks, ", ") |
| 652 | } |
| 653 | |
| 654 | func buildCondenseDeltaSQL(viewName string, appender *DeltaAppender) string { |
| 655 | var ( |
no test coverage detected