MCPcopy Index your code
hub / github.com/bytebase/bytebase / createTableDDL

Function createTableDDL

backend/plugin/parser/redshift/completion.go:160–167  ·  view source on GitHub ↗
(schemaName, tableName string, columns []*storepb.ColumnMetadata)

Source from the content-addressed store, hash-verified

158}
159
160func createTableDDL(schemaName, tableName string, columns []*storepb.ColumnMetadata) string {
161 return fmt.Sprintf(
162 "CREATE TABLE %s.%s (%s);",
163 quoteIdent(schemaName),
164 quoteIdent(tableName),
165 columnListDDL(columns),
166 )
167}
168
169func createViewDDL(kind, schemaName, viewName string, columns []*storepb.ColumnMetadata) string {
170 selectItems := make([]string, 0, len(columns))

Callers 1

buildCompletionCatalogFunction · 0.85

Calls 2

columnListDDLFunction · 0.85
quoteIdentFunction · 0.70

Tested by

no test coverage detected