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

Function buildColumnList

delta/controller.go:603–613  ·  view source on GitHub ↗

Helper function to build column list with timestamp handling

(b *strings.Builder, schema sql.Schema)

Source from the content-addressed store, hash-verified

601
602// Helper function to build column list with timestamp handling
603func buildColumnList(b *strings.Builder, schema sql.Schema) {
604 for i, col := range schema {
605 if i > 0 {
606 b.WriteString(", ")
607 }
608 b.WriteString(catalog.QuoteIdentifierANSI(col.Name))
609 if isTimestampType(col.Type) {
610 b.WriteString("::TIMESTAMP")
611 }
612 }
613}
614
615// Helper function to get the primary key indices.
616func getPrimaryKeyIndices(appender *DeltaAppender) []int {

Callers 1

handleInsertOnlyMethod · 0.85

Calls 2

QuoteIdentifierANSIFunction · 0.92
isTimestampTypeFunction · 0.85

Tested by

no test coverage detected