MCPcopy Create free account
hub / github.com/bytebase/bytebase / toStrColInfo

Function toStrColInfo

backend/plugin/db/databricks/databricks.go:197–205  ·  view source on GitHub ↗

return a column type name array and a column name array.

(colInfo []dbsql.ColumnInfo)

Source from the content-addressed store, hash-verified

195
196// return a column type name array and a column name array.
197func toStrColInfo(colInfo []dbsql.ColumnInfo) ([]string, []string) {
198 colNames := []string{}
199 colTypeNames := []string{}
200 for _, col := range colInfo {
201 colNames = append(colNames, col.Name)
202 colTypeNames = append(colTypeNames, string(col.TypeName))
203 }
204 return colNames, colTypeNames
205}
206
207func toV1pbRowVal(colType dbsql.ColumnInfoTypeName, val string) (*v1pb.RowValue, error) {
208 rowVal := v1pb.RowValue{}

Callers 1

QueryConnMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected