Skip to content

Commit

Permalink
add timestamp layout variables for azure sql
Browse files Browse the repository at this point in the history
  • Loading branch information
flarco committed Dec 27, 2024
1 parent d828f57 commit d676c95
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/dbio/templates/azuredwh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,13 @@ function:


variable:
timestamp_layout: '2006-01-02 15:04:05.0000000'
timestamp_layout_str: "cast('{value}' as datetime2)"

# https://stackoverflow.com/a/17867687/2295355
timestampz_layout_str: "ToDateTimeOffset('{value}')"
timestampz_layout: "2006-01-02 15:04:05.0000000', '-07:00"

error_ignore_drop_table: "does not exist"
error_ignore_drop_view: "does not exist"
bind_string: "@p{c}"
Expand Down
7 changes: 7 additions & 0 deletions core/dbio/templates/azuresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,13 @@ function:


variable:
timestamp_layout: '2006-01-02 15:04:05.0000000'
timestamp_layout_str: "cast('{value}' as datetime2)"

# https://stackoverflow.com/a/17867687/2295355
timestampz_layout_str: "ToDateTimeOffset('{value}')"
timestampz_layout: "2006-01-02 15:04:05.0000000', '-07:00"

bind_string: "@p{c}"
bool_as: string
batch_rows: 200
Expand Down

0 comments on commit d676c95

Please sign in to comment.