MCPcopy Create free account
hub / github.com/apecloud/myduckserver / getPrimaryKeyList

Function getPrimaryKeyList

delta/controller.go:644–652  ·  view source on GitHub ↗

Helper function to get the primary key list.

(schema sql.Schema)

Source from the content-addressed store, hash-verified

642
643// Helper function to get the primary key list.
644func 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
654func buildCondenseDeltaSQL(viewName string, appender *DeltaAppender) string {
655 var (

Callers 1

buildCondenseDeltaSQLFunction · 0.85

Calls 1

QuoteIdentifierANSIFunction · 0.92

Tested by

no test coverage detected