Skip to content

Commit

Permalink
Update SQL snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Jan 13, 2025
1 parent a8a64ac commit ef0dae9
Show file tree
Hide file tree
Showing 109 changed files with 967 additions and 967 deletions.
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
select __relational_posts_result__.*
from (select 0 as idx, $1::"int4" as "id0", $2::"text" as "id1") as __relational_posts_identifiers__,
from (select 0 as idx) as __relational_posts_identifiers__,
lateral (
select
__relational_posts_identifiers__.idx as "0"
from interfaces_and_unions.insert_post(__relational_posts_identifiers__."id0", __relational_posts_identifiers__."id1") as __relational_posts__
from interfaces_and_unions.insert_post($1::"int4", $2::"text") as __relational_posts__
order by __relational_posts__."id" asc
) as __relational_posts_result__;

select __relational_posts_result__.*
from (select 0 as idx, $1::"int4" as "id0", $2::"text" as "id1") as __relational_posts_identifiers__,
from (select 0 as idx) as __relational_posts_identifiers__,
lateral (
select
__relational_posts_identifiers__.idx as "0"
from interfaces_and_unions.insert_post(__relational_posts_identifiers__."id0", __relational_posts_identifiers__."id1") as __relational_posts__
from interfaces_and_unions.insert_post($1::"int4", $2::"text") as __relational_posts__
order by __relational_posts__."id" asc
) as __relational_posts_result__;

select __relational_posts_result__.*
from (select 0 as idx, $1::"int4" as "id0", $2::"text" as "id1") as __relational_posts_identifiers__,
from (select 0 as idx) as __relational_posts_identifiers__,
lateral (
select
case when (__relational_posts__) is not distinct from null then null::text else json_build_array((((__relational_posts__)."id"))::text, ((__relational_posts__)."title"), ((__relational_posts__)."description"), ((__relational_posts__)."note"))::text end as "0",
__relational_posts__."id"::text as "1",
__relational_posts_identifiers__.idx as "2"
from interfaces_and_unions.insert_post(__relational_posts_identifiers__."id0", __relational_posts_identifiers__."id1") as __relational_posts__
from interfaces_and_unions.insert_post($1::"int4", $2::"text") as __relational_posts__
) as __relational_posts_result__;

select __relational_items_result__.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
select __relational_posts_result__.*
from (select 0 as idx, $1::"int4" as "id0", $2::"text" as "id1") as __relational_posts_identifiers__,
from (select 0 as idx) as __relational_posts_identifiers__,
lateral (
select
__relational_posts_identifiers__.idx as "0"
from interfaces_and_unions.insert_post(__relational_posts_identifiers__."id0", __relational_posts_identifiers__."id1") as __relational_posts__
from interfaces_and_unions.insert_post($1::"int4", $2::"text") as __relational_posts__
order by __relational_posts__."id" asc
) as __relational_posts_result__;

select __relational_posts_result__.*
from (select 0 as idx, $1::"int4" as "id0", $2::"text" as "id1") as __relational_posts_identifiers__,
from (select 0 as idx) as __relational_posts_identifiers__,
lateral (
select
__relational_posts_identifiers__.idx as "0"
from interfaces_and_unions.insert_post(__relational_posts_identifiers__."id0", __relational_posts_identifiers__."id1") as __relational_posts__
from interfaces_and_unions.insert_post($1::"int4", $2::"text") as __relational_posts__
order by __relational_posts__."id" asc
) as __relational_posts_result__;

select __relational_posts_result__.*
from (select 0 as idx, $1::"int4" as "id0", $2::"text" as "id1") as __relational_posts_identifiers__,
from (select 0 as idx) as __relational_posts_identifiers__,
lateral (
select
case when (__relational_posts__) is not distinct from null then null::text else json_build_array((((__relational_posts__)."id"))::text, ((__relational_posts__)."title"), ((__relational_posts__)."description"), ((__relational_posts__)."note"))::text end as "0",
__relational_posts__."id"::text as "1",
__relational_posts_identifiers__.idx as "2"
from interfaces_and_unions.insert_post(__relational_posts_identifiers__."id0", __relational_posts_identifiers__."id1") as __relational_posts__
from interfaces_and_unions.insert_post($1::"int4", $2::"text") as __relational_posts__
) as __relational_posts_result__;

select __relational_items_result__.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ delete from interfaces_and_unions.relational_posts as __relational_posts__ where
case when (__relational_posts__) is not distinct from null then null::text else json_build_array((((__relational_posts__)."id"))::text, ((__relational_posts__)."title"), ((__relational_posts__)."description"), ((__relational_posts__)."note"))::text end as "1";

select __relational_posts_result__.*
from (select 0 as idx, $1::interfaces_and_unions.relational_posts as "id0") as __relational_posts_identifiers__,
from (select 0 as idx) as __relational_posts_identifiers__,
lateral (
select
__relational_items__."author_id"::text as "0",
Expand All @@ -13,7 +13,7 @@ lateral (
__relational_posts__."note" as "4",
__relational_posts_title_lower__.v as "5",
__relational_posts_identifiers__.idx as "6"
from (select (__relational_posts_identifiers__."id0").*) as __relational_posts__
from (select ($1::interfaces_and_unions.relational_posts).*) as __relational_posts__
left outer join interfaces_and_unions.relational_items as __relational_items__
on (
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ delete from interfaces_and_unions.relational_posts as __relational_posts__ where
case when (__relational_posts__) is not distinct from null then null::text else json_build_array((((__relational_posts__)."id"))::text, ((__relational_posts__)."title"), ((__relational_posts__)."description"), ((__relational_posts__)."note"))::text end as "1";

select __relational_posts_result__.*
from (select 0 as idx, $1::interfaces_and_unions.relational_posts as "id0") as __relational_posts_identifiers__,
from (select 0 as idx) as __relational_posts_identifiers__,
lateral (
select
__people__."person_id"::text as "0",
Expand All @@ -15,7 +15,7 @@ lateral (
__relational_posts__."note" as "6",
__relational_posts_title_lower__.v as "7",
__relational_posts_identifiers__.idx as "8"
from (select (__relational_posts_identifiers__."id0").*) as __relational_posts__
from (select ($1::interfaces_and_unions.relational_posts).*) as __relational_posts__
left outer join interfaces_and_unions.relational_items as __relational_items__
on (
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ where
order by __forums__."id" asc;

select __messages_result__.*
from (select 0 as idx, $1::"uuid" as "id0", $2::"timestamptz" as "id1") as __messages_identifiers__,
from (select 0 as idx, $2::"uuid" as "id0") as __messages_identifiers__,
lateral (
select
__messages__."body" as "0",
Expand All @@ -22,7 +22,7 @@ lateral (
from app_public.messages as __messages__
where
(
(__messages__.archived_at is null) = (__messages_identifiers__."id1" is null)
(__messages__.archived_at is null) = ($1::"timestamptz" is null)
) and (
__messages__."forum_id" = __messages_identifiers__."id0"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ where
order by __forums__."id" asc;

select __messages_result__.*
from (select 0 as idx, $1::"uuid" as "id0", $2::"timestamptz" as "id1") as __messages_identifiers__,
from (select 0 as idx, $2::"uuid" as "id0") as __messages_identifiers__,
lateral (
select
__messages__."body" as "0",
Expand Down Expand Up @@ -45,7 +45,7 @@ lateral (
)
where
(
(__messages__.archived_at is null) = (__messages_identifiers__."id1" is null)
(__messages__.archived_at is null) = ($1::"timestamptz" is null)
) and (
__messages__."forum_id" = __messages_identifiers__."id0"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ where
order by __forums__."id" asc;

select __messages_result__.*
from (select 0 as idx, $1::"uuid" as "id0", $2::"timestamptz" as "id1") as __messages_identifiers__,
from (select 0 as idx, $2::"uuid" as "id0") as __messages_identifiers__,
lateral (
select
__messages__."body" as "0",
Expand All @@ -22,7 +22,7 @@ lateral (
from app_public.messages as __messages__
where
(
(__messages__.archived_at is null) = (__messages_identifiers__."id1" is null)
(__messages__.archived_at is null) = ($1::"timestamptz" is null)
) and (
__messages__."forum_id" = __messages_identifiers__."id0"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ where
order by __forums__."id" asc;

select __messages_result__.*
from (select 0 as idx, $1::"uuid" as "id0", $2::"timestamptz" as "id1") as __messages_identifiers__,
from (select 0 as idx, $2::"uuid" as "id0") as __messages_identifiers__,
lateral (
select
__messages__."body" as "0",
Expand Down Expand Up @@ -45,7 +45,7 @@ lateral (
)
where
(
(__messages__.archived_at is null) = (__messages_identifiers__."id1" is null)
(__messages__.archived_at is null) = ($1::"timestamptz" is null)
) and (
__messages__."forum_id" = __messages_identifiers__."id0"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ where
order by __forums__."id" asc;

select __messages_result__.*
from (select 0 as idx, $1::"uuid" as "id0", $2::"timestamptz" as "id1") as __messages_identifiers__,
from (select 0 as idx, $2::"uuid" as "id0") as __messages_identifiers__,
lateral (
select
__messages__."body" as "0",
Expand All @@ -21,15 +21,15 @@ lateral (
from app_public.messages as __messages__
where
(
(__messages__.archived_at is null) = (__messages_identifiers__."id1" is null)
(__messages__.archived_at is null) = ($1::"timestamptz" is null)
) and (
__messages__."forum_id" = __messages_identifiers__."id0"
)
order by __messages__."id" asc
) as __messages_result__;

select __messages_result__.*
from (select 0 as idx, $1::"uuid" as "id0", $2::"timestamptz" as "id1") as __messages_identifiers__,
from (select 0 as idx, $2::"uuid" as "id0") as __messages_identifiers__,
lateral (
select
__messages__."id" as "0",
Expand All @@ -39,7 +39,7 @@ lateral (
from app_public.messages as __messages__
where
(
(__messages__.archived_at is null) = (__messages_identifiers__."id1" is null)
(__messages__.archived_at is null) = ($1::"timestamptz" is null)
) and (
__messages__."forum_id" = __messages_identifiers__."id0"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ where
order by __forums__."id" asc;

select __messages_result__.*
from (select 0 as idx, $1::"uuid" as "id0", $2::"timestamptz" as "id1") as __messages_identifiers__,
from (select 0 as idx, $2::"uuid" as "id0") as __messages_identifiers__,
lateral (
select
__messages__."body" as "0",
Expand All @@ -32,15 +32,15 @@ lateral (
)
where
(
(__messages__.archived_at is null) = (__messages_identifiers__."id1" is null)
(__messages__.archived_at is null) = ($1::"timestamptz" is null)
) and (
__messages__."forum_id" = __messages_identifiers__."id0"
)
order by __messages__."id" asc
) as __messages_result__;

select __messages_result__.*
from (select 0 as idx, $1::"uuid" as "id0", $2::"timestamptz" as "id1") as __messages_identifiers__,
from (select 0 as idx, $2::"uuid" as "id0") as __messages_identifiers__,
lateral (
select
__messages__."id" as "0",
Expand All @@ -61,7 +61,7 @@ lateral (
)
where
(
(__messages__.archived_at is null) = (__messages_identifiers__."id1" is null)
(__messages__.archived_at is null) = ($1::"timestamptz" is null)
) and (
__messages__."forum_id" = __messages_identifiers__."id0"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ where
order by __forums__."id" asc;

select __messages_result__.*
from (select 0 as idx, $1::"uuid" as "id0", $2::"timestamptz" as "id1") as __messages_identifiers__,
from (select 0 as idx, $2::"uuid" as "id0") as __messages_identifiers__,
lateral (
select
__messages__."body" as "0",
Expand All @@ -22,23 +22,23 @@ lateral (
from app_public.messages as __messages__
where
(
(__messages__.archived_at is null) = (__messages_identifiers__."id1" is null)
(__messages__.archived_at is null) = ($1::"timestamptz" is null)
) and (
__messages__."forum_id" = __messages_identifiers__."id0"
)
order by __messages__."id" asc
) as __messages_result__;

select __messages_result__.*
from (select 0 as idx, $1::"uuid" as "id0", $2::"timestamptz" as "id1") as __messages_identifiers__,
from (select 0 as idx, $2::"uuid" as "id0") as __messages_identifiers__,
lateral (
select
(count(*))::text as "0",
__messages_identifiers__.idx as "1"
from app_public.messages as __messages__
where
(
(__messages__.archived_at is null) = (__messages_identifiers__."id1" is null)
(__messages__.archived_at is null) = ($1::"timestamptz" is null)
) and (
__messages__."forum_id" = __messages_identifiers__."id0"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ where
order by __forums__."id" asc;

select __messages_result__.*
from (select 0 as idx, $1::"uuid" as "id0", $2::"timestamptz" as "id1") as __messages_identifiers__,
from (select 0 as idx, $2::"uuid" as "id0") as __messages_identifiers__,
lateral (
select
__messages__."body" as "0",
Expand All @@ -22,23 +22,23 @@ lateral (
from app_public.messages as __messages__
where
(
(__messages__.archived_at is null) = (__messages_identifiers__."id1" is null)
(__messages__.archived_at is null) = ($1::"timestamptz" is null)
) and (
__messages__."forum_id" = __messages_identifiers__."id0"
)
order by __messages__."id" asc
) as __messages_result__;

select __messages_result__.*
from (select 0 as idx, $1::"uuid" as "id0", $2::"timestamptz" as "id1") as __messages_identifiers__,
from (select 0 as idx, $2::"uuid" as "id0") as __messages_identifiers__,
lateral (
select
(count(*))::text as "0",
__messages_identifiers__.idx as "1"
from app_public.messages as __messages__
where
(
(__messages__.archived_at is null) = (__messages_identifiers__."id1" is null)
(__messages__.archived_at is null) = ($1::"timestamptz" is null)
) and (
__messages__."forum_id" = __messages_identifiers__."id0"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ where
order by __forums__."id" asc;

select __messages_result__.*
from (select 0 as idx, $1::"uuid" as "id0", $2::"timestamptz" as "id1") as __messages_identifiers__,
from (select 0 as idx, $2::"uuid" as "id0") as __messages_identifiers__,
lateral (
select
__messages__."body" as "0",
Expand All @@ -22,7 +22,7 @@ lateral (
from app_public.messages as __messages__
where
(
(__messages__.archived_at is null) = (__messages_identifiers__."id1" is null)
(__messages__.archived_at is null) = ($1::"timestamptz" is null)
) and (
__messages__."forum_id" = __messages_identifiers__."id0"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ where
order by __forums__."id" asc;

select __messages_result__.*
from (select 0 as idx, $1::"uuid" as "id0", $2::"timestamptz" as "id1") as __messages_identifiers__,
from (select 0 as idx, $2::"uuid" as "id0") as __messages_identifiers__,
lateral (
select
__messages__."body" as "0",
Expand All @@ -22,7 +22,7 @@ lateral (
from app_public.messages as __messages__
where
(
(__messages__.archived_at is null) = (__messages_identifiers__."id1" is null)
(__messages__.archived_at is null) = ($1::"timestamptz" is null)
) and (
__messages__."forum_id" = __messages_identifiers__."id0"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ where
order by __forums__."id" asc;

select __messages_result__.*
from (select 0 as idx, $1::"uuid" as "id0", $2::"timestamptz" as "id1") as __messages_identifiers__,
from (select 0 as idx, $2::"uuid" as "id0") as __messages_identifiers__,
lateral (
select
__messages__."body" as "0",
Expand All @@ -22,7 +22,7 @@ lateral (
from app_public.messages as __messages__
where
(
(__messages__.archived_at is null) = (__messages_identifiers__."id1" is null)
(__messages__.archived_at is null) = ($1::"timestamptz" is null)
) and (
__messages__."forum_id" = __messages_identifiers__."id0"
)
Expand Down
Loading

0 comments on commit ef0dae9

Please sign in to comment.