MCPcopy Index your code
hub / github.com/go-dev-frame/sponge / TestConvertToSQLByPgFields

Function TestConvertToSQLByPgFields

pkg/sql2code/parser/parser_test.go:392–400  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

390}
391
392func TestConvertToSQLByPgFields(t *testing.T) {
393 fields := []*PGField{
394 {Name: "id", Type: "smallint"},
395 {Name: "name", Type: "character", Lengthvar: 24, Notnull: false},
396 {Name: "age", Type: "smallint", Notnull: true},
397 }
398 sql, tps := ConvertToSQLByPgFields("foobar", fields)
399 t.Log(sql, tps)
400}
401
402func Test_PGField_getMysqlType(t *testing.T) {
403 fields := []*PGField{

Callers

nothing calls this directly

Calls 1

ConvertToSQLByPgFieldsFunction · 0.85

Tested by

no test coverage detected