(t *testing.T)
| 390 | } |
| 391 | |
| 392 | func 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 | |
| 402 | func Test_PGField_getMysqlType(t *testing.T) { |
| 403 | fields := []*PGField{ |
nothing calls this directly
no test coverage detected