Skip to content

Commit ae01db5

Browse files
committed
Support unnesting of JSONB fields
1 parent 4ecea94 commit ae01db5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/data/catalog_db.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ const (
4242
PGTypeBool = "bool"
4343
PGTypeNumeric = "numeric"
4444
PGTypeJSON = "json"
45+
PGTypeJSONB = "jsonb"
4546
PGTypeGeometry = "geometry"
4647
PGTypeTextArray = "_text"
4748
)
@@ -539,6 +540,8 @@ func toJSONTypeFromPG(pgType string) string {
539540
return JSONTypeBoolean
540541
case PGTypeJSON:
541542
return JSONTypeJSON
543+
case PGTypeJSONB:
544+
return JSONTypeJSON
542545
case PGTypeTextArray:
543546
return JSONTypeStringArray
544547
// hack to allow displaying geometry type

0 commit comments

Comments
 (0)