summaryrefslogtreecommitdiff
path: root/server/.sqlx/query-bfbd002137bcf942b9911eac9cce4b4592616cad37afdb2b1e40bd38cbf2190c.json
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-01-09 00:34:02 +0100
committerJoel Klinghed <the_jk@spawned.biz>2025-01-09 00:48:52 +0100
commit6c6dd808a1005771f50696e1568dd6c653e2731b (patch)
tree822a71086afe8c71de4b26099f6985a677c690a0 /server/.sqlx/query-bfbd002137bcf942b9911eac9cce4b4592616cad37afdb2b1e40bd38cbf2190c.json
parent6b81d27aaffd96b3f2a9aeb168a2c7f8fbe564c1 (diff)
Move sqlx to "offline mode"
Avoid having to have an active server and a migrated database to be able to build. Instead, when a new query is added or the database updated, cargo sqlx prepare needs to be run again, then with a running server and an active database. But only then.
Diffstat (limited to 'server/.sqlx/query-bfbd002137bcf942b9911eac9cce4b4592616cad37afdb2b1e40bd38cbf2190c.json')
-rw-r--r--server/.sqlx/query-bfbd002137bcf942b9911eac9cce4b4592616cad37afdb2b1e40bd38cbf2190c.json36
1 files changed, 36 insertions, 0 deletions
diff --git a/server/.sqlx/query-bfbd002137bcf942b9911eac9cce4b4592616cad37afdb2b1e40bd38cbf2190c.json b/server/.sqlx/query-bfbd002137bcf942b9911eac9cce4b4592616cad37afdb2b1e40bd38cbf2190c.json
new file mode 100644
index 0000000..61a445f
--- /dev/null
+++ b/server/.sqlx/query-bfbd002137bcf942b9911eac9cce4b4592616cad37afdb2b1e40bd38cbf2190c.json
@@ -0,0 +1,36 @@
+{
+ "db_name": "MySQL",
+ "query": "SELECT id,dn FROM users WHERE username=?",
+ "describe": {
+ "columns": [
+ {
+ "ordinal": 0,
+ "name": "id",
+ "type_info": {
+ "type": "LongLong",
+ "flags": "NOT_NULL | PRIMARY_KEY | UNSIGNED | AUTO_INCREMENT",
+ "char_set": 63,
+ "max_size": 20
+ }
+ },
+ {
+ "ordinal": 1,
+ "name": "dn",
+ "type_info": {
+ "type": "VarString",
+ "flags": "",
+ "char_set": 224,
+ "max_size": 1024
+ }
+ }
+ ],
+ "parameters": {
+ "Right": 1
+ },
+ "nullable": [
+ false,
+ true
+ ]
+ },
+ "hash": "bfbd002137bcf942b9911eac9cce4b4592616cad37afdb2b1e40bd38cbf2190c"
+}