diff --git a/.sqlx/query-22f7f2de3eb2908348473789e5b2d056c2ac3c58e28612b58167723487a11bd2.json b/.sqlx/query-22f7f2de3eb2908348473789e5b2d056c2ac3c58e28612b58167723487a11bd2.json index 30c6b2f..32365d8 100644 --- a/.sqlx/query-22f7f2de3eb2908348473789e5b2d056c2ac3c58e28612b58167723487a11bd2.json +++ b/.sqlx/query-22f7f2de3eb2908348473789e5b2d056c2ac3c58e28612b58167723487a11bd2.json @@ -40,36 +40,31 @@ }, { "ordinal": 7, - "name": "stars", - "type_info": "Int4" - }, - { - "ordinal": 8, "name": "metadata_user_id", "type_info": "Int8" }, { - "ordinal": 9, + "ordinal": 8, "name": "metadata_pinned_message_id", "type_info": "Int8" }, { - "ordinal": 10, + "ordinal": 9, "name": "metadata_pinned_by", "type_info": "Int8" }, { - "ordinal": 11, + "ordinal": 10, "name": "edited_at", "type_info": "Timestamptz" }, { - "ordinal": 12, + "ordinal": 11, "name": "mentions", "type_info": "Int8Array" }, { - "ordinal": 13, + "ordinal": 12, "name": "embeds_ser: sqlx::types::Json>", "type_info": "Jsonb" } @@ -89,7 +84,6 @@ true, false, false, - false, true, true, true, diff --git a/.sqlx/query-c50c61c5ad28ff50ad156c178cbdecf8cb1a2fb8ba07fd0f4800428e73ac3e93.json b/.sqlx/query-2d3543a310a9099d438058c654aba458ddebaa49804797b30e57a13c1bb8acd0.json similarity index 50% rename from .sqlx/query-c50c61c5ad28ff50ad156c178cbdecf8cb1a2fb8ba07fd0f4800428e73ac3e93.json rename to .sqlx/query-2d3543a310a9099d438058c654aba458ddebaa49804797b30e57a13c1bb8acd0.json index 4240783..a35d1ad 100644 --- a/.sqlx/query-c50c61c5ad28ff50ad156c178cbdecf8cb1a2fb8ba07fd0f4800428e73ac3e93.json +++ b/.sqlx/query-2d3543a310a9099d438058c654aba458ddebaa49804797b30e57a13c1bb8acd0.json @@ -1,6 +1,6 @@ { "db_name": "PostgreSQL", - "query": "SELECT * FROM reactions WHERE message_id = $1", + "query": "SELECT\n message_id,\n emoji_id,\n emoji_name,\n array_agg(user_id) AS user_ids,\n array_agg(created_at) AS created_at\n FROM reactions\n WHERE\n message_id = ANY($1::BIGINT[])\n GROUP BY (message_id, emoji_id, emoji_name)", "describe": { "columns": [ { @@ -10,37 +10,37 @@ }, { "ordinal": 1, - "name": "user_id", + "name": "emoji_id", "type_info": "Int8" }, { "ordinal": 2, - "name": "emoji_id", - "type_info": "Int8" + "name": "emoji_name", + "type_info": "Text" }, { "ordinal": 3, - "name": "emoji_name", - "type_info": "Text" + "name": "user_ids", + "type_info": "Int8Array" }, { "ordinal": 4, "name": "created_at", - "type_info": "Timestamptz" + "type_info": "TimestamptzArray" } ], "parameters": { "Left": [ - "Int8" + "Int8Array" ] }, "nullable": [ - false, false, true, false, - false + null, + null ] }, - "hash": "c50c61c5ad28ff50ad156c178cbdecf8cb1a2fb8ba07fd0f4800428e73ac3e93" + "hash": "2d3543a310a9099d438058c654aba458ddebaa49804797b30e57a13c1bb8acd0" } diff --git a/.sqlx/query-5153de68036dee44f6031a3b32f7dd3bdac4e7604f0677da5f7c11098371229d.json b/.sqlx/query-5153de68036dee44f6031a3b32f7dd3bdac4e7604f0677da5f7c11098371229d.json deleted file mode 100644 index c3e5df4..0000000 --- a/.sqlx/query-5153de68036dee44f6031a3b32f7dd3bdac4e7604f0677da5f7c11098371229d.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT a.*\n FROM attachments a\n INNER JOIN messages m ON a.message_id = m.id WHERE\n m.channel_id = $1\n AND\n ($2::BIGINT IS NULL OR m.id < $2)\n AND\n ($3::BIGINT IS NULL OR m.id > $3)\n AND\n ($4::BIGINT IS NULL OR m.author_id = $4)\n ORDER BY m.id ASC LIMIT $5", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "message_id", - "type_info": "Int8" - }, - { - "ordinal": 2, - "name": "filename", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "size", - "type_info": "Int8" - }, - { - "ordinal": 4, - "name": "alt", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Int8", - "Int8", - "Int8", - "Int8", - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - false, - true - ] - }, - "hash": "5153de68036dee44f6031a3b32f7dd3bdac4e7604f0677da5f7c11098371229d" -} diff --git a/.sqlx/query-5d1b399bc88542a8c7c501f5a5300beade120bd6da34ad1d3c41e862f5694765.json b/.sqlx/query-5d1b399bc88542a8c7c501f5a5300beade120bd6da34ad1d3c41e862f5694765.json index 4f9fd93..fed0cda 100644 --- a/.sqlx/query-5d1b399bc88542a8c7c501f5a5300beade120bd6da34ad1d3c41e862f5694765.json +++ b/.sqlx/query-5d1b399bc88542a8c7c501f5a5300beade120bd6da34ad1d3c41e862f5694765.json @@ -40,36 +40,31 @@ }, { "ordinal": 7, - "name": "stars", - "type_info": "Int4" - }, - { - "ordinal": 8, "name": "metadata_user_id", "type_info": "Int8" }, { - "ordinal": 9, + "ordinal": 8, "name": "metadata_pinned_message_id", "type_info": "Int8" }, { - "ordinal": 10, + "ordinal": 9, "name": "metadata_pinned_by", "type_info": "Int8" }, { - "ordinal": 11, + "ordinal": 10, "name": "edited_at", "type_info": "Timestamptz" }, { - "ordinal": 12, + "ordinal": 11, "name": "mentions", "type_info": "Int8Array" }, { - "ordinal": 13, + "ordinal": 12, "name": "embeds_ser: sqlx::types::Json>", "type_info": "Jsonb" } @@ -91,7 +86,6 @@ true, false, false, - false, true, true, true, diff --git a/.sqlx/query-319a268b1f45e124225d51af3630a4aca39c225e36b9cae428017b34012adaec.json b/.sqlx/query-5e98e9f0f91f1da45d68cec83f02ee944540380035cde8bfcb40f090d0e41ac0.json similarity index 75% rename from .sqlx/query-319a268b1f45e124225d51af3630a4aca39c225e36b9cae428017b34012adaec.json rename to .sqlx/query-5e98e9f0f91f1da45d68cec83f02ee944540380035cde8bfcb40f090d0e41ac0.json index 379e7cd..051e94a 100644 --- a/.sqlx/query-319a268b1f45e124225d51af3630a4aca39c225e36b9cae428017b34012adaec.json +++ b/.sqlx/query-5e98e9f0f91f1da45d68cec83f02ee944540380035cde8bfcb40f090d0e41ac0.json @@ -1,6 +1,6 @@ { "db_name": "PostgreSQL", - "query": "SELECT\n m.*,\n embeds AS \"embeds_ser: sqlx::types::Json>\"\n FROM\n messages m WHERE\n m.channel_id = $1\n AND\n ($2::BIGINT IS NULL OR m.id < $2)\n AND\n ($3::BIGINT IS NULL OR m.id > $3)\n AND\n ($4::BIGINT IS NULL OR m.author_id = $4)\n ORDER BY m.id ASC LIMIT $5", + "query": "SELECT\n m.*,\n embeds AS \"embeds_ser: sqlx::types::Json>\"\n FROM\n messages m\n WHERE\n m.channel_id = $1\n AND\n ($2::BIGINT IS NULL OR m.id < $2)\n AND\n ($3::BIGINT IS NULL OR m.id > $3)\n AND\n ($4::BIGINT IS NULL OR m.author_id = $4)\n ORDER BY id ASC LIMIT $5", "describe": { "columns": [ { @@ -40,36 +40,31 @@ }, { "ordinal": 7, - "name": "stars", - "type_info": "Int4" - }, - { - "ordinal": 8, "name": "metadata_user_id", "type_info": "Int8" }, { - "ordinal": 9, + "ordinal": 8, "name": "metadata_pinned_message_id", "type_info": "Int8" }, { - "ordinal": 10, + "ordinal": 9, "name": "metadata_pinned_by", "type_info": "Int8" }, { - "ordinal": 11, + "ordinal": 10, "name": "edited_at", "type_info": "Timestamptz" }, { - "ordinal": 12, + "ordinal": 11, "name": "mentions", "type_info": "Int8Array" }, { - "ordinal": 13, + "ordinal": 12, "name": "embeds_ser: sqlx::types::Json>", "type_info": "Jsonb" } @@ -91,7 +86,6 @@ true, false, false, - false, true, true, true, @@ -100,5 +94,5 @@ false ] }, - "hash": "319a268b1f45e124225d51af3630a4aca39c225e36b9cae428017b34012adaec" + "hash": "5e98e9f0f91f1da45d68cec83f02ee944540380035cde8bfcb40f090d0e41ac0" } diff --git a/.sqlx/query-db252520c24caf95c43c7ec4a4d4be8cf22d9b0f8665c3afec5d3c909aa3c666.json b/.sqlx/query-7cc66e3e976ae800e135d9fc6227b844e47d303a5697065a72bbe952746eb2ec.json similarity index 75% rename from .sqlx/query-db252520c24caf95c43c7ec4a4d4be8cf22d9b0f8665c3afec5d3c909aa3c666.json rename to .sqlx/query-7cc66e3e976ae800e135d9fc6227b844e47d303a5697065a72bbe952746eb2ec.json index 56ce385..55dfa5e 100644 --- a/.sqlx/query-db252520c24caf95c43c7ec4a4d4be8cf22d9b0f8665c3afec5d3c909aa3c666.json +++ b/.sqlx/query-7cc66e3e976ae800e135d9fc6227b844e47d303a5697065a72bbe952746eb2ec.json @@ -1,6 +1,6 @@ { "db_name": "PostgreSQL", - "query": "SELECT\n m.*,\n embeds AS \"embeds_ser: sqlx::types::Json>\"\n FROM\n messages m WHERE\n m.channel_id = $1\n AND\n ($2::BIGINT IS NULL OR m.id < $2)\n AND\n ($3::BIGINT IS NULL OR m.id > $3)\n AND\n ($4::BIGINT IS NULL OR m.author_id = $4)\n ORDER BY m.id DESC LIMIT $5", + "query": "SELECT\n m.*,\n embeds AS \"embeds_ser: sqlx::types::Json>\"\n FROM\n messages m\n WHERE\n m.channel_id = $1\n AND\n ($2::BIGINT IS NULL OR m.id < $2)\n AND\n ($3::BIGINT IS NULL OR m.id > $3)\n AND\n ($4::BIGINT IS NULL OR m.author_id = $4)\n ORDER BY id DESC LIMIT $5", "describe": { "columns": [ { @@ -40,36 +40,31 @@ }, { "ordinal": 7, - "name": "stars", - "type_info": "Int4" - }, - { - "ordinal": 8, "name": "metadata_user_id", "type_info": "Int8" }, { - "ordinal": 9, + "ordinal": 8, "name": "metadata_pinned_message_id", "type_info": "Int8" }, { - "ordinal": 10, + "ordinal": 9, "name": "metadata_pinned_by", "type_info": "Int8" }, { - "ordinal": 11, + "ordinal": 10, "name": "edited_at", "type_info": "Timestamptz" }, { - "ordinal": 12, + "ordinal": 11, "name": "mentions", "type_info": "Int8Array" }, { - "ordinal": 13, + "ordinal": 12, "name": "embeds_ser: sqlx::types::Json>", "type_info": "Jsonb" } @@ -91,7 +86,6 @@ true, false, false, - false, true, true, true, @@ -100,5 +94,5 @@ false ] }, - "hash": "db252520c24caf95c43c7ec4a4d4be8cf22d9b0f8665c3afec5d3c909aa3c666" + "hash": "7cc66e3e976ae800e135d9fc6227b844e47d303a5697065a72bbe952746eb2ec" } diff --git a/.sqlx/query-7dacf6af22fcc8423aa91fc3fa6e30013fb5a0bf2c036871dc3624dcf2f62d98.json b/.sqlx/query-7dacf6af22fcc8423aa91fc3fa6e30013fb5a0bf2c036871dc3624dcf2f62d98.json index 36dc479..662ee65 100644 --- a/.sqlx/query-7dacf6af22fcc8423aa91fc3fa6e30013fb5a0bf2c036871dc3624dcf2f62d98.json +++ b/.sqlx/query-7dacf6af22fcc8423aa91fc3fa6e30013fb5a0bf2c036871dc3624dcf2f62d98.json @@ -40,36 +40,31 @@ }, { "ordinal": 7, - "name": "stars", - "type_info": "Int4" - }, - { - "ordinal": 8, "name": "metadata_user_id", "type_info": "Int8" }, { - "ordinal": 9, + "ordinal": 8, "name": "metadata_pinned_message_id", "type_info": "Int8" }, { - "ordinal": 10, + "ordinal": 9, "name": "metadata_pinned_by", "type_info": "Int8" }, { - "ordinal": 11, + "ordinal": 10, "name": "edited_at", "type_info": "Timestamptz" }, { - "ordinal": 12, + "ordinal": 11, "name": "mentions", "type_info": "Int8Array" }, { - "ordinal": 13, + "ordinal": 12, "name": "embeds_ser: sqlx::types::Json>", "type_info": "Jsonb" } @@ -87,7 +82,6 @@ true, false, false, - false, true, true, true, diff --git a/.sqlx/query-8fb62aa8ac859a91a68fa1cc589c02c2a42e6128ae636b3b478182af411c2b45.json b/.sqlx/query-8fb62aa8ac859a91a68fa1cc589c02c2a42e6128ae636b3b478182af411c2b45.json deleted file mode 100644 index 78cabd1..0000000 --- a/.sqlx/query-8fb62aa8ac859a91a68fa1cc589c02c2a42e6128ae636b3b478182af411c2b45.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT r.* \n FROM message_references r \n INNER JOIN messages m ON r.message_id = m.id WHERE\n m.channel_id = $1\n AND\n ($2::BIGINT IS NULL OR m.id < $2)\n AND\n ($3::BIGINT IS NULL OR m.id > $3)\n AND\n ($4::BIGINT IS NULL OR m.author_id = $4)\n ORDER BY m.id DESC LIMIT $5", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "target_id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "message_id", - "type_info": "Int8" - }, - { - "ordinal": 2, - "name": "channel_id", - "type_info": "Int8" - }, - { - "ordinal": 3, - "name": "guild_id", - "type_info": "Int8" - }, - { - "ordinal": 4, - "name": "mention_author", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Int8", - "Int8", - "Int8", - "Int8", - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - true, - false - ] - }, - "hash": "8fb62aa8ac859a91a68fa1cc589c02c2a42e6128ae636b3b478182af411c2b45" -} diff --git a/.sqlx/query-a00d0b0633a52367fc9d4f15abc273a60fd45b65ece74ca85f27248b6edf5a39.json b/.sqlx/query-a00d0b0633a52367fc9d4f15abc273a60fd45b65ece74ca85f27248b6edf5a39.json deleted file mode 100644 index 9e32cfd..0000000 --- a/.sqlx/query-a00d0b0633a52367fc9d4f15abc273a60fd45b65ece74ca85f27248b6edf5a39.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT r.* \n FROM message_references r \n INNER JOIN messages m ON r.message_id = m.id WHERE\n m.channel_id = $1\n AND\n ($2::BIGINT IS NULL OR m.id < $2)\n AND\n ($3::BIGINT IS NULL OR m.id > $3)\n AND\n ($4::BIGINT IS NULL OR m.author_id = $4)\n ORDER BY m.id ASC LIMIT $5", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "target_id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "message_id", - "type_info": "Int8" - }, - { - "ordinal": 2, - "name": "channel_id", - "type_info": "Int8" - }, - { - "ordinal": 3, - "name": "guild_id", - "type_info": "Int8" - }, - { - "ordinal": 4, - "name": "mention_author", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [ - "Int8", - "Int8", - "Int8", - "Int8", - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - true, - false - ] - }, - "hash": "a00d0b0633a52367fc9d4f15abc273a60fd45b65ece74ca85f27248b6edf5a39" -} diff --git a/.sqlx/query-b4f1b69ce95e4c5259f91729d1694de79567ec291ecbf3fab5702f38f8a4972f.json b/.sqlx/query-b4f1b69ce95e4c5259f91729d1694de79567ec291ecbf3fab5702f38f8a4972f.json deleted file mode 100644 index 1bbed31..0000000 --- a/.sqlx/query-b4f1b69ce95e4c5259f91729d1694de79567ec291ecbf3fab5702f38f8a4972f.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT a.*\n FROM attachments a\n INNER JOIN messages m ON a.message_id = m.id WHERE\n m.channel_id = $1\n AND\n ($2::BIGINT IS NULL OR m.id < $2)\n AND\n ($3::BIGINT IS NULL OR m.id > $3)\n AND\n ($4::BIGINT IS NULL OR m.author_id = $4)\n ORDER BY m.id DESC LIMIT $5", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Uuid" - }, - { - "ordinal": 1, - "name": "message_id", - "type_info": "Int8" - }, - { - "ordinal": 2, - "name": "filename", - "type_info": "Text" - }, - { - "ordinal": 3, - "name": "size", - "type_info": "Int8" - }, - { - "ordinal": 4, - "name": "alt", - "type_info": "Text" - } - ], - "parameters": { - "Left": [ - "Int8", - "Int8", - "Int8", - "Int8", - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - false, - true - ] - }, - "hash": "b4f1b69ce95e4c5259f91729d1694de79567ec291ecbf3fab5702f38f8a4972f" -} diff --git a/.sqlx/query-d4e262167ec82273bf18e6136ad7498596f439a8784b63cb308c990f3564ff78.json b/.sqlx/query-b5a82d779d6e118c5b93a3572832d18c5e2fd8327b57004bc0dff3f0c434fd5d.json similarity index 65% rename from .sqlx/query-d4e262167ec82273bf18e6136ad7498596f439a8784b63cb308c990f3564ff78.json rename to .sqlx/query-b5a82d779d6e118c5b93a3572832d18c5e2fd8327b57004bc0dff3f0c434fd5d.json index f34e81f..bb5bfd1 100644 --- a/.sqlx/query-d4e262167ec82273bf18e6136ad7498596f439a8784b63cb308c990f3564ff78.json +++ b/.sqlx/query-b5a82d779d6e118c5b93a3572832d18c5e2fd8327b57004bc0dff3f0c434fd5d.json @@ -1,6 +1,6 @@ { "db_name": "PostgreSQL", - "query": "SELECT r.* FROM message_references r\n INNER JOIN\n messages m ON r.message_id = m.id\n WHERE\n m.id = ANY($1::BIGINT[])\n AND\n ($2::BIGINT[] IS NULL OR m.channel_id = ANY($2::BIGINT[]))", + "query": "SELECT * FROM message_references WHERE message_id = ANY($1::BIGINT[])", "describe": { "columns": [ { @@ -31,7 +31,6 @@ ], "parameters": { "Left": [ - "Int8Array", "Int8Array" ] }, @@ -43,5 +42,5 @@ false ] }, - "hash": "d4e262167ec82273bf18e6136ad7498596f439a8784b63cb308c990f3564ff78" + "hash": "b5a82d779d6e118c5b93a3572832d18c5e2fd8327b57004bc0dff3f0c434fd5d" } diff --git a/.sqlx/query-cc4962a2d735f9f0b78c972b7e3d610c555805dbea3ad384810d180223116896.json b/.sqlx/query-cc4962a2d735f9f0b78c972b7e3d610c555805dbea3ad384810d180223116896.json index 66fdd62..7afabba 100644 --- a/.sqlx/query-cc4962a2d735f9f0b78c972b7e3d610c555805dbea3ad384810d180223116896.json +++ b/.sqlx/query-cc4962a2d735f9f0b78c972b7e3d610c555805dbea3ad384810d180223116896.json @@ -40,36 +40,31 @@ }, { "ordinal": 7, - "name": "stars", - "type_info": "Int4" - }, - { - "ordinal": 8, "name": "metadata_user_id", "type_info": "Int8" }, { - "ordinal": 9, + "ordinal": 8, "name": "metadata_pinned_message_id", "type_info": "Int8" }, { - "ordinal": 10, + "ordinal": 9, "name": "metadata_pinned_by", "type_info": "Int8" }, { - "ordinal": 11, + "ordinal": 10, "name": "edited_at", "type_info": "Timestamptz" }, { - "ordinal": 12, + "ordinal": 11, "name": "mentions", "type_info": "Int8Array" }, { - "ordinal": 13, + "ordinal": 12, "name": "embeds_ser: sqlx::types::Json>", "type_info": "Jsonb" } @@ -88,7 +83,6 @@ true, false, false, - false, true, true, true, diff --git a/.sqlx/query-f4c75b9c2e3aff9121b02bef2e07fffe3a770db6ba4a9f95bf32b89ee7a38615.json b/.sqlx/query-f87a5a17e6507e33591754d9d921f5afbe2ed4c651743f6fb2944223bd27532d.json similarity index 65% rename from .sqlx/query-f4c75b9c2e3aff9121b02bef2e07fffe3a770db6ba4a9f95bf32b89ee7a38615.json rename to .sqlx/query-f87a5a17e6507e33591754d9d921f5afbe2ed4c651743f6fb2944223bd27532d.json index 3fdc4e9..2da4714 100644 --- a/.sqlx/query-f4c75b9c2e3aff9121b02bef2e07fffe3a770db6ba4a9f95bf32b89ee7a38615.json +++ b/.sqlx/query-f87a5a17e6507e33591754d9d921f5afbe2ed4c651743f6fb2944223bd27532d.json @@ -1,6 +1,6 @@ { "db_name": "PostgreSQL", - "query": "SELECT a.* FROM attachments a\n INNER JOIN\n messages m ON a.message_id = m.id\n WHERE\n m.id = ANY($1::BIGINT[])\n AND\n ($2::BIGINT[] IS NULL OR m.channel_id = ANY($2::BIGINT[]))", + "query": "SELECT * FROM attachments WHERE message_id = ANY($1::BIGINT[])", "describe": { "columns": [ { @@ -31,7 +31,6 @@ ], "parameters": { "Left": [ - "Int8Array", "Int8Array" ] }, @@ -43,5 +42,5 @@ true ] }, - "hash": "f4c75b9c2e3aff9121b02bef2e07fffe3a770db6ba4a9f95bf32b89ee7a38615" + "hash": "f87a5a17e6507e33591754d9d921f5afbe2ed4c651743f6fb2944223bd27532d" } diff --git a/.sqlx/query-fcb93aa60eb02343c13a8e69d2813939a8a457f1357becf957a9f4a34f2c38ef.json b/.sqlx/query-fcb93aa60eb02343c13a8e69d2813939a8a457f1357becf957a9f4a34f2c38ef.json new file mode 100644 index 0000000..c23e6eb --- /dev/null +++ b/.sqlx/query-fcb93aa60eb02343c13a8e69d2813939a8a457f1357becf957a9f4a34f2c38ef.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT\n emoji_id,\n emoji_name,\n array_agg(user_id) AS user_ids,\n array_agg(created_at) AS created_at\n FROM reactions\n WHERE message_id = $1\n GROUP BY (emoji_id, emoji_name)", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "emoji_id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "emoji_name", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "user_ids", + "type_info": "Int8Array" + }, + { + "ordinal": 3, + "name": "created_at", + "type_info": "TimestamptzArray" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + true, + false, + null, + null + ] + }, + "hash": "fcb93aa60eb02343c13a8e69d2813939a8a457f1357becf957a9f4a34f2c38ef" +}