Skip to content

Commit

Permalink
name inflection colocated to context. pending move to __Schema
Browse files Browse the repository at this point in the history
  • Loading branch information
olirice committed Jan 17, 2023
1 parent 8998ccf commit 7895ece
Show file tree
Hide file tree
Showing 3 changed files with 164 additions and 134 deletions.
2 changes: 2 additions & 0 deletions sql/load_sql_context.sql
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ select
'name', pp.proname::text,
'type_oid', pp.prorettype::oid::int,
'type_name', pp.prorettype::regtype::text,
'schema_oid', pronamespace::int,
'schema_name', pronamespace::regnamespace::text,
'comment', pg_catalog.obj_description(pp.oid, 'pg_proc'),
'directives', jsonb_build_object(
Expand Down Expand Up @@ -231,6 +232,7 @@ select
'name', pa.attname::text,
'type_oid', pa.atttypid::int,
'type_name', pa.atttypid::regtype::text,
'schema_oid', pn.oid::int,
'is_not_null', pa.attnotnull,
'attribute_num', pa.attnum,
'has_default', pd.adbin is not null, -- pg_get_expr(pd.adbin, pd.adrelid) shows expression
Expand Down
Loading

0 comments on commit 7895ece

Please sign in to comment.