diff --git a/server/.sqlx/query-1cff76615ce5fb26bd9fbb23cbe4a204ddf3d75be6666fca3624deb35c0aaa97.json b/server/.sqlx/query-1cff76615ce5fb26bd9fbb23cbe4a204ddf3d75be6666fca3624deb35c0aaa97.json new file mode 100644 index 0000000..cd7e9cb --- /dev/null +++ b/server/.sqlx/query-1cff76615ce5fb26bd9fbb23cbe4a204ddf3d75be6666fca3624deb35c0aaa97.json @@ -0,0 +1,56 @@ +{ + "db_name": "SQLite", + "query": "SELECT * FROM posts WHERE id = (SELECT MAX(id) FROM posts)", + "describe": { + "columns": [ + { + "name": "id", + "ordinal": 0, + "type_info": "Int64" + }, + { + "name": "user_id", + "ordinal": 1, + "type_info": "Int64" + }, + { + "name": "content", + "ordinal": 2, + "type_info": "Text" + }, + { + "name": "upvotes", + "ordinal": 3, + "type_info": "Int64" + }, + { + "name": "downvotes", + "ordinal": 4, + "type_info": "Int64" + }, + { + "name": "created_at", + "ordinal": 5, + "type_info": "Datetime" + }, + { + "name": "updated_at", + "ordinal": 6, + "type_info": "Datetime" + } + ], + "parameters": { + "Right": 0 + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "1cff76615ce5fb26bd9fbb23cbe4a204ddf3d75be6666fca3624deb35c0aaa97" +} diff --git a/server/.sqlx/query-2e61cd30a6cd3e0937dd096b4f94493e8bcb8c10687d0f8c0592fe38ed956fa6.json b/server/.sqlx/query-2e61cd30a6cd3e0937dd096b4f94493e8bcb8c10687d0f8c0592fe38ed956fa6.json new file mode 100644 index 0000000..afb4fda --- /dev/null +++ b/server/.sqlx/query-2e61cd30a6cd3e0937dd096b4f94493e8bcb8c10687d0f8c0592fe38ed956fa6.json @@ -0,0 +1,20 @@ +{ + "db_name": "SQLite", + "query": "SELECT id FROM users WHERE username = ?", + "describe": { + "columns": [ + { + "name": "id", + "ordinal": 0, + "type_info": "Int64" + } + ], + "parameters": { + "Right": 1 + }, + "nullable": [ + false + ] + }, + "hash": "2e61cd30a6cd3e0937dd096b4f94493e8bcb8c10687d0f8c0592fe38ed956fa6" +} diff --git a/server/.sqlx/query-78ecd3bc5a999dc227a86556f0ce41065974104b735d96b3c5785480023bb60a.json b/server/.sqlx/query-78ecd3bc5a999dc227a86556f0ce41065974104b735d96b3c5785480023bb60a.json new file mode 100644 index 0000000..3f0c25a --- /dev/null +++ b/server/.sqlx/query-78ecd3bc5a999dc227a86556f0ce41065974104b735d96b3c5785480023bb60a.json @@ -0,0 +1,12 @@ +{ + "db_name": "SQLite", + "query": "INSERT INTO users (username, password) VALUES (?, ?)", + "describe": { + "columns": [], + "parameters": { + "Right": 2 + }, + "nullable": [] + }, + "hash": "78ecd3bc5a999dc227a86556f0ce41065974104b735d96b3c5785480023bb60a" +} diff --git a/server/.sqlx/query-8c06e65c10e3a2eee83cfe51628eec79860b1f3119c4025f541e7d724ed381be.json b/server/.sqlx/query-8c06e65c10e3a2eee83cfe51628eec79860b1f3119c4025f541e7d724ed381be.json new file mode 100644 index 0000000..0bb7904 --- /dev/null +++ b/server/.sqlx/query-8c06e65c10e3a2eee83cfe51628eec79860b1f3119c4025f541e7d724ed381be.json @@ -0,0 +1,12 @@ +{ + "db_name": "SQLite", + "query": "INSERT INTO posts (user_id, content) VALUES (1, 'Hello world! The demo username is user and the password is pass.')", + "describe": { + "columns": [], + "parameters": { + "Right": 0 + }, + "nullable": [] + }, + "hash": "8c06e65c10e3a2eee83cfe51628eec79860b1f3119c4025f541e7d724ed381be" +} diff --git a/server/.sqlx/query-8f5e9d8d0c7c33d31f02a9cbd9886ed945d788caeb704b2ee5f743f7bf5fac88.json b/server/.sqlx/query-8f5e9d8d0c7c33d31f02a9cbd9886ed945d788caeb704b2ee5f743f7bf5fac88.json new file mode 100644 index 0000000..013443f --- /dev/null +++ b/server/.sqlx/query-8f5e9d8d0c7c33d31f02a9cbd9886ed945d788caeb704b2ee5f743f7bf5fac88.json @@ -0,0 +1,56 @@ +{ + "db_name": "SQLite", + "query": "SELECT * FROM posts ORDER BY created_at DESC LIMIT ? OFFSET ?", + "describe": { + "columns": [ + { + "name": "id", + "ordinal": 0, + "type_info": "Int64" + }, + { + "name": "user_id", + "ordinal": 1, + "type_info": "Int64" + }, + { + "name": "content", + "ordinal": 2, + "type_info": "Text" + }, + { + "name": "upvotes", + "ordinal": 3, + "type_info": "Int64" + }, + { + "name": "downvotes", + "ordinal": 4, + "type_info": "Int64" + }, + { + "name": "created_at", + "ordinal": 5, + "type_info": "Datetime" + }, + { + "name": "updated_at", + "ordinal": 6, + "type_info": "Datetime" + } + ], + "parameters": { + "Right": 2 + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "8f5e9d8d0c7c33d31f02a9cbd9886ed945d788caeb704b2ee5f743f7bf5fac88" +} diff --git a/server/.sqlx/query-98f4c0bfff04e07f5d0a46d48a31d24655826eebdf09c7f9f45d770df02035d3.json b/server/.sqlx/query-98f4c0bfff04e07f5d0a46d48a31d24655826eebdf09c7f9f45d770df02035d3.json new file mode 100644 index 0000000..09d4c19 --- /dev/null +++ b/server/.sqlx/query-98f4c0bfff04e07f5d0a46d48a31d24655826eebdf09c7f9f45d770df02035d3.json @@ -0,0 +1,44 @@ +{ + "db_name": "SQLite", + "query": "SELECT * FROM users WHERE username = ?", + "describe": { + "columns": [ + { + "name": "id", + "ordinal": 0, + "type_info": "Int64" + }, + { + "name": "username", + "ordinal": 1, + "type_info": "Text" + }, + { + "name": "password", + "ordinal": 2, + "type_info": "Text" + }, + { + "name": "created_at", + "ordinal": 3, + "type_info": "Datetime" + }, + { + "name": "updated_at", + "ordinal": 4, + "type_info": "Datetime" + } + ], + "parameters": { + "Right": 1 + }, + "nullable": [ + false, + false, + false, + false, + false + ] + }, + "hash": "98f4c0bfff04e07f5d0a46d48a31d24655826eebdf09c7f9f45d770df02035d3" +} diff --git a/server/.sqlx/query-abd3af0c2a9ba20eab7116a2d5ed4ccde65b4858124c174988ff72847704e305.json b/server/.sqlx/query-abd3af0c2a9ba20eab7116a2d5ed4ccde65b4858124c174988ff72847704e305.json new file mode 100644 index 0000000..70cdc6f --- /dev/null +++ b/server/.sqlx/query-abd3af0c2a9ba20eab7116a2d5ed4ccde65b4858124c174988ff72847704e305.json @@ -0,0 +1,56 @@ +{ + "db_name": "SQLite", + "query": "SELECT * FROM posts WHERE id = 1", + "describe": { + "columns": [ + { + "name": "id", + "ordinal": 0, + "type_info": "Int64" + }, + { + "name": "user_id", + "ordinal": 1, + "type_info": "Int64" + }, + { + "name": "content", + "ordinal": 2, + "type_info": "Text" + }, + { + "name": "upvotes", + "ordinal": 3, + "type_info": "Int64" + }, + { + "name": "downvotes", + "ordinal": 4, + "type_info": "Int64" + }, + { + "name": "created_at", + "ordinal": 5, + "type_info": "Datetime" + }, + { + "name": "updated_at", + "ordinal": 6, + "type_info": "Datetime" + } + ], + "parameters": { + "Right": 0 + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "abd3af0c2a9ba20eab7116a2d5ed4ccde65b4858124c174988ff72847704e305" +} diff --git a/server/.sqlx/query-c2804e9c7bbd92dcddc34dd6f9d95a2598bb69984d6023e38eeea54454887b90.json b/server/.sqlx/query-c2804e9c7bbd92dcddc34dd6f9d95a2598bb69984d6023e38eeea54454887b90.json new file mode 100644 index 0000000..0dd732c --- /dev/null +++ b/server/.sqlx/query-c2804e9c7bbd92dcddc34dd6f9d95a2598bb69984d6023e38eeea54454887b90.json @@ -0,0 +1,12 @@ +{ + "db_name": "SQLite", + "query": "INSERT INTO posts (user_id, content) VALUES (?, ?)", + "describe": { + "columns": [], + "parameters": { + "Right": 2 + }, + "nullable": [] + }, + "hash": "c2804e9c7bbd92dcddc34dd6f9d95a2598bb69984d6023e38eeea54454887b90" +} diff --git a/server/.sqlx/query-da280dfbdfe992918eb4f25ca61c08fc01474c3753a63e05b02051f5c066abc2.json b/server/.sqlx/query-da280dfbdfe992918eb4f25ca61c08fc01474c3753a63e05b02051f5c066abc2.json new file mode 100644 index 0000000..7c57d88 --- /dev/null +++ b/server/.sqlx/query-da280dfbdfe992918eb4f25ca61c08fc01474c3753a63e05b02051f5c066abc2.json @@ -0,0 +1,56 @@ +{ + "db_name": "SQLite", + "query": "SELECT * FROM posts WHERE id = ?", + "describe": { + "columns": [ + { + "name": "id", + "ordinal": 0, + "type_info": "Int64" + }, + { + "name": "user_id", + "ordinal": 1, + "type_info": "Int64" + }, + { + "name": "content", + "ordinal": 2, + "type_info": "Text" + }, + { + "name": "upvotes", + "ordinal": 3, + "type_info": "Int64" + }, + { + "name": "downvotes", + "ordinal": 4, + "type_info": "Int64" + }, + { + "name": "created_at", + "ordinal": 5, + "type_info": "Datetime" + }, + { + "name": "updated_at", + "ordinal": 6, + "type_info": "Datetime" + } + ], + "parameters": { + "Right": 1 + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "da280dfbdfe992918eb4f25ca61c08fc01474c3753a63e05b02051f5c066abc2" +} diff --git a/server/.sqlx/query-fdbb1cd2873a5c866faaf3a60185d1f98e14198655aa536c2227ef8d2c6b88e1.json b/server/.sqlx/query-fdbb1cd2873a5c866faaf3a60185d1f98e14198655aa536c2227ef8d2c6b88e1.json new file mode 100644 index 0000000..68b5108 --- /dev/null +++ b/server/.sqlx/query-fdbb1cd2873a5c866faaf3a60185d1f98e14198655aa536c2227ef8d2c6b88e1.json @@ -0,0 +1,20 @@ +{ + "db_name": "SQLite", + "query": "SELECT username FROM users WHERE username = ?", + "describe": { + "columns": [ + { + "name": "username", + "ordinal": 0, + "type_info": "Text" + } + ], + "parameters": { + "Right": 1 + }, + "nullable": [ + false + ] + }, + "hash": "fdbb1cd2873a5c866faaf3a60185d1f98e14198655aa536c2227ef8d2c6b88e1" +}