Select statement execution and mapping to struct or slice added.
This commit is contained in:
parent
319c9f757d
commit
75f8e0dfec
6 changed files with 291 additions and 13 deletions
|
|
@ -45,10 +45,11 @@ func (c ColumnInfo) GoBaseType() string {
|
|||
case "smallint":
|
||||
return "int16"
|
||||
case "integer":
|
||||
return "int"
|
||||
return "int32"
|
||||
case "bigint":
|
||||
return "int64"
|
||||
//case "date" : return "time.Time"
|
||||
case "date", "timestamp without time zone", "timestamp with time zone":
|
||||
return "time.Time"
|
||||
case "bytea":
|
||||
return "[]byte"
|
||||
case "text":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue