Skip to content

Commit

Permalink
Merge pull request #37 from tzzzoz/main
Browse files Browse the repository at this point in the history
Support partition key in type: timestamp with time zone
  • Loading branch information
victorboissiere authored Sep 5, 2024
2 parents 2b19d8c + 84314a3 commit 8ed3d4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/infra/postgresql/column.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ func (p Postgres) GetColumnDataType(schema, table, column string) (ColumnType, e
return DateTime, nil
case "timestamp without time zone":
return DateTime, nil
case "timestamp with time zone":
return DateTime, nil
case "uuid":
return UUID, nil
default:
Expand Down
5 changes: 5 additions & 0 deletions internal/infra/postgresql/column_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ func TestGetColumn(t *testing.T) {
"timestamp without time zone",
DateTime,
},
{
"Date time with time zone",
"timestamp with time zone",
DateTime,
},
{
"UUID",
"uuid",
Expand Down

0 comments on commit 8ed3d4d

Please sign in to comment.