MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / transformColumnTypes

Method transformColumnTypes

storage/storage.go:380–393  ·  view source on GitHub ↗
(columnTypes []*sql.ColumnType, e error)

Source from the content-addressed store, hash-verified

378}
379
380func (s *Storage) transformColumnTypes(columnTypes []*sql.ColumnType, e error) (types []string, err error) {
381 if e != nil {
382 err = e
383 return
384 }
385
386 types = make([]string, len(columnTypes))
387
388 for i, c := range columnTypes {
389 types[i] = c.DatabaseTypeName()
390 }
391
392 return
393}
394
395// golang does trick convert, use rowScanner to return the original result type in sqlite3 driver.
396type rowScanner struct {

Callers 1

QueryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected