Fixed import paths for null package, add byte typ
This commit is contained in:
parent
3d22dc0897
commit
86ca3bbcea
8 changed files with 47 additions and 26 deletions
bdb/drivers
|
@ -317,6 +317,8 @@ func (p *PostgresDriver) TranslateColumnType(c bdb.Column) bdb.Column {
|
|||
c.Type = "null.Float32"
|
||||
case "bit", "interval", "bit varying", "character", "money", "character varying", "cidr", "inet", "macaddr", "text", "uuid", "xml":
|
||||
c.Type = "null.String"
|
||||
case `"char"`:
|
||||
c.Type = "null.Byte"
|
||||
case "bytea":
|
||||
c.Type = "null.Bytes"
|
||||
case "json", "jsonb":
|
||||
|
@ -357,6 +359,8 @@ func (p *PostgresDriver) TranslateColumnType(c bdb.Column) bdb.Column {
|
|||
c.Type = "float32"
|
||||
case "bit", "interval", "uuint", "bit varying", "character", "money", "character varying", "cidr", "inet", "macaddr", "text", "uuid", "xml":
|
||||
c.Type = "string"
|
||||
case `"char"`:
|
||||
c.Type = "types.Byte"
|
||||
case "json", "jsonb":
|
||||
c.Type = "types.JSON"
|
||||
case "bytea":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue