MCPcopy Create free account
hub / github.com/go-dev-frame/sponge / printPGFields

Function printPGFields

pkg/sql2code/parser/parser_test.go:445–450  ·  view source on GitHub ↗
(fields []*PGField)

Source from the content-addressed store, hash-verified

443}
444
445func printPGFields(fields []*PGField) {
446 fmt.Printf("%-20v %-20v %-20v %-20v %-20v %-20v %-20v\n", "Name", "Type", "Length", "Lengthvar", "Notnull", "Comment", "IsPrimaryKey")
447 for _, p := range fields {
448 fmt.Printf("%-20v %-20v %-20v %-20v %-20v %-20v %-20v\n", p.Name, p.Type, p.Length, p.Lengthvar, p.Notnull, p.Comment, p.IsPrimaryKey)
449 }
450}
451
452func Test_getMongodbTableFields(t *testing.T) {
453 fields := []*MgoField{

Callers 1

Calls 1

PrintfMethod · 0.80

Tested by

no test coverage detected