From 47e8ce32d982a3d4fbe926b1db21f8206c2afb1e Mon Sep 17 00:00:00 2001 From: Sacheendra Talluri Date: Tue, 9 Jun 2015 14:29:43 -0500 Subject: [PATCH] add jsonb and timestamp with time zone to postgres data types --- g_appcode.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/g_appcode.go b/g_appcode.go index c3c295c..5607e77 100644 --- a/g_appcode.go +++ b/g_appcode.go @@ -118,6 +118,7 @@ var typeMappingPostgres = map[string]string{ "time": "time.Time", "timestamp": "time.Time", "timestamp without time zone": "time.Time", + "timestamp with time zone": "time.Time", "interval": "string", // time interval, string for now "real": "float32", // float & decimal "double precision": "float64", @@ -130,6 +131,7 @@ var typeMappingPostgres = map[string]string{ "USER-DEFINED": "string", // user defined "uuid": "string", // uuid "json": "string", // json + "jsonb": "string", } // Table represent a table in a database