Skip to content

Commit

Permalink
Support unnesting of JSONB fields (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobMiksch authored Nov 4, 2024
1 parent 4ecea94 commit 35cb1f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/data/catalog_db.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const (
PGTypeBool = "bool"
PGTypeNumeric = "numeric"
PGTypeJSON = "json"
PGTypeJSONB = "jsonb"
PGTypeGeometry = "geometry"
PGTypeTextArray = "_text"
)
Expand Down Expand Up @@ -539,6 +540,8 @@ func toJSONTypeFromPG(pgType string) string {
return JSONTypeBoolean
case PGTypeJSON:
return JSONTypeJSON
case PGTypeJSONB:
return JSONTypeJSON
case PGTypeTextArray:
return JSONTypeStringArray
// hack to allow displaying geometry type
Expand Down

0 comments on commit 35cb1f1

Please sign in to comment.