Skip to content

Commit

Permalink
Merge pull request #8 from satya10x/feature-array
Browse files Browse the repository at this point in the history
Added support for int, bigint and text array dataypes for Postgres. _…
  • Loading branch information
knadh authored Aug 10, 2020
2 parents 4b11431 + 6b9a951 commit 92deb5a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions backends/sqldb.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,13 @@ func (s *sqlDB) createTableSchema(cols []string, colTypes []*sql.ColumnType) ins
if s.dbType != dbTypePostgres {
typ = "TEXT"
}
// _INT4, _INT8, _TEXT represent array types in Postgres
case "_INT4": // Postgres
typ = "_INT4"
case "_INT8": // Postgres
typ = "_INT8"
case "_TEXT": // Postgres
typ = "_TEXT"
default:
typ = "TEXT"
}
Expand Down

0 comments on commit 92deb5a

Please sign in to comment.