Skip to content

Commit

Permalink
Fix example json_table code in pg_json_ops extension
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Sep 29, 2024
1 parent a21966c commit 7a15c83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/sequel/extensions/pg_json_ops.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,17 @@
# String :bar
# Integer :baz
# end
# # json_table('$.foo' COLUMNS(bar text, baz integer))
# # json_table("jsonb_column", '$.foo' COLUMNS("bar" text, "baz" integer))
#
# j.table('$.foo', passing: {a: 1}) do
# ordinality :id
# String :bar, format: :json, on_error: :empty_object
# nested '$.baz' do
# Integer :q, path: '$.quux', on_empty: :error
# end
# exists :x, on_error: false
# exists :x, Date, on_error: false
# end
# # json_table("j", '$.foo' PASSING 1 AS a COLUMNS(
# # json_table(jsonb_column, '$.foo' PASSING 1 AS a COLUMNS(
# # "id" FOR ORDINALITY,
# # "bar" text FORMAT JSON EMPTY OBJECT ON ERROR,
# # NESTED '$.baz' COLUMNS(
Expand Down

0 comments on commit 7a15c83

Please sign in to comment.