diff --git a/.sqlx/query-50b00bd9611b7438b12bcc01f8328ea9e475eb964a1170829a30081a18a29b84.json b/.sqlx/query-2e29a510d084df7db649c02a7b1a335b9690b70c640a7820c298559c9b007f28.json similarity index 83% rename from .sqlx/query-50b00bd9611b7438b12bcc01f8328ea9e475eb964a1170829a30081a18a29b84.json rename to .sqlx/query-2e29a510d084df7db649c02a7b1a335b9690b70c640a7820c298559c9b007f28.json index 11a283b..1412e31 100644 --- a/.sqlx/query-50b00bd9611b7438b12bcc01f8328ea9e475eb964a1170829a30081a18a29b84.json +++ b/.sqlx/query-2e29a510d084df7db649c02a7b1a335b9690b70c640a7820c298559c9b007f28.json @@ -1,6 +1,6 @@ { "db_name": "SQLite", - "query": "\n SELECT\n m.arrived_at AS \"arrived_at!\",\n m.from_id AS \"from_id: _\",\n m.message,\n m.receipt AS \"receipt: _\",\n m.body_ranges AS \"body_ranges: _\",\n m.attachments AS \"attachments: _\",\n m.reactions AS \"reactions: _\",\n q.arrived_at AS \"quote_arrived_at: _\",\n q.from_id AS \"quote_from_id: _\",\n q.message AS quote_message,\n q.attachments AS \"quote_attachments: _\",\n q.body_ranges AS \"quote_body_ranges: _\",\n q.receipt AS \"quote_receipt: _\",\n NULL AS \"edit: _\",\n (m.arrived_at IS NOT NULL) AS \"edited: _\"\n FROM messages AS m\n LEFT JOIN messages AS q ON q.arrived_at = m.quote AND q.channel_id = ?1\n WHERE m.channel_id = ?1 AND m.edit IS NULL\n GROUP BY m.arrived_at\n ORDER BY m.arrived_at ASC\n ", + "query": "\n SELECT\n m.arrived_at AS \"arrived_at!\",\n m.from_id AS \"from_id: _\",\n m.message,\n m.receipt AS \"receipt: _\",\n m.body_ranges AS \"body_ranges: _\",\n m.attachments AS \"attachments: _\",\n m.reactions AS \"reactions: _\",\n q.arrived_at AS \"quote_arrived_at: _\",\n q.from_id AS \"quote_from_id: _\",\n q.message AS quote_message,\n q.attachments AS \"quote_attachments: _\",\n q.body_ranges AS \"quote_body_ranges: _\",\n q.receipt AS \"quote_receipt: _\",\n NULL AS \"edit: _\",\n m.edited AS \"edited: _\"\n FROM messages AS m\n LEFT JOIN messages AS q ON q.arrived_at = m.quote AND q.channel_id = ?1\n WHERE m.channel_id = ?1 AND m.edit IS NULL\n ORDER BY m.arrived_at ASC\n ", "describe": { "columns": [ { @@ -76,14 +76,14 @@ { "name": "edited: _", "ordinal": 14, - "type_info": "Int" + "type_info": "Bool" } ], "parameters": { "Right": 1 }, "nullable": [ - true, + false, false, true, true, @@ -100,5 +100,5 @@ false ] }, - "hash": "50b00bd9611b7438b12bcc01f8328ea9e475eb964a1170829a30081a18a29b84" + "hash": "2e29a510d084df7db649c02a7b1a335b9690b70c640a7820c298559c9b007f28" } diff --git a/.sqlx/query-1165040a89d11912f920185aa736b60cb4ab5a44dda8285e0beff6ff8a41eb7e.json b/.sqlx/query-6d5d549e04f958f194c3c13fb6a974e2c33824667c9a6fe9370456d659798b34.json similarity index 65% rename from .sqlx/query-1165040a89d11912f920185aa736b60cb4ab5a44dda8285e0beff6ff8a41eb7e.json rename to .sqlx/query-6d5d549e04f958f194c3c13fb6a974e2c33824667c9a6fe9370456d659798b34.json index 49b3db4..86ee906 100644 --- a/.sqlx/query-1165040a89d11912f920185aa736b60cb4ab5a44dda8285e0beff6ff8a41eb7e.json +++ b/.sqlx/query-6d5d549e04f958f194c3c13fb6a974e2c33824667c9a6fe9370456d659798b34.json @@ -1,12 +1,12 @@ { "db_name": "SQLite", - "query": "\n REPLACE INTO messages(\n arrived_at,\n channel_id,\n from_id,\n message,\n quote,\n receipt,\n body_ranges,\n attachments,\n reactions,\n edit\n )\n VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\n ", + "query": "\n REPLACE INTO messages(\n arrived_at,\n channel_id,\n from_id,\n message,\n quote,\n receipt,\n body_ranges,\n attachments,\n reactions,\n edit,\n edited\n )\n VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\n ", "describe": { "columns": [], "parameters": { - "Right": 10 + "Right": 11 }, "nullable": [] }, - "hash": "1165040a89d11912f920185aa736b60cb4ab5a44dda8285e0beff6ff8a41eb7e" + "hash": "6d5d549e04f958f194c3c13fb6a974e2c33824667c9a6fe9370456d659798b34" } diff --git a/.sqlx/query-07d206dba310ff81c5b44769e9863bc4b4d4af71c23105f9aec2ca83d9f32db5.json b/.sqlx/query-a88ae3a5fcf95d51012882212b5a9ca20aace2261befc099e641b8d0ba692b29.json similarity index 85% rename from .sqlx/query-07d206dba310ff81c5b44769e9863bc4b4d4af71c23105f9aec2ca83d9f32db5.json rename to .sqlx/query-a88ae3a5fcf95d51012882212b5a9ca20aace2261befc099e641b8d0ba692b29.json index 52aa74a..d6f7344 100644 --- a/.sqlx/query-07d206dba310ff81c5b44769e9863bc4b4d4af71c23105f9aec2ca83d9f32db5.json +++ b/.sqlx/query-a88ae3a5fcf95d51012882212b5a9ca20aace2261befc099e641b8d0ba692b29.json @@ -1,6 +1,6 @@ { "db_name": "SQLite", - "query": "\n SELECT\n m.arrived_at,\n m.from_id AS \"from_id: _\",\n m.message,\n m.receipt AS \"receipt: _\",\n m.body_ranges AS \"body_ranges: _\",\n m.attachments AS \"attachments: _\",\n m.reactions AS \"reactions: _\",\n q.arrived_at AS \"quote_arrived_at: _\",\n q.from_id AS \"quote_from_id: _\",\n q.message AS quote_message,\n q.attachments AS \"quote_attachments: _\",\n q.body_ranges AS \"quote_body_ranges: _\",\n q.receipt AS \"quote_receipt: _\",\n m.edit,\n false as \"edited: _\"\n FROM messages AS m\n LEFT JOIN messages AS q ON q.arrived_at = m.quote AND q.channel_id = ?1\n WHERE m.channel_id = ?1 AND m.arrived_at = ?2\n GROUP BY m.arrived_at\n LIMIT 1\n ", + "query": "\n SELECT\n m.arrived_at,\n m.from_id AS \"from_id: _\",\n m.message,\n m.receipt AS \"receipt: _\",\n m.body_ranges AS \"body_ranges: _\",\n m.attachments AS \"attachments: _\",\n m.reactions AS \"reactions: _\",\n q.arrived_at AS \"quote_arrived_at: _\",\n q.from_id AS \"quote_from_id: _\",\n q.message AS quote_message,\n q.attachments AS \"quote_attachments: _\",\n q.body_ranges AS \"quote_body_ranges: _\",\n q.receipt AS \"quote_receipt: _\",\n m.edit,\n m.edited as \"edited: _\"\n FROM messages AS m\n LEFT JOIN messages AS q ON q.arrived_at = m.quote AND q.channel_id = ?1\n WHERE m.channel_id = ?1 AND m.arrived_at = ?2\n GROUP BY m.arrived_at\n LIMIT 1\n ", "describe": { "columns": [ { @@ -76,7 +76,7 @@ { "name": "edited: _", "ordinal": 14, - "type_info": "Int" + "type_info": "Bool" } ], "parameters": { @@ -100,5 +100,5 @@ false ] }, - "hash": "07d206dba310ff81c5b44769e9863bc4b4d4af71c23105f9aec2ca83d9f32db5" + "hash": "a88ae3a5fcf95d51012882212b5a9ca20aace2261befc099e641b8d0ba692b29" }