diff options
-rw-r--r-- | .sqlx/query-3ed66b56b7e78a6b6bad9d49c49607520a8d09f902b996467dddf58737a3757f.json | 16 | ||||
-rw-r--r-- | .sqlx/query-82c11b5a47389884e4ed945b87dfcee9067933c4df892609700c0766c20fc5c5.json | 40 | ||||
-rw-r--r-- | .sqlx/query-adead45e1a6b02d5eabd68b8cf06394a302d288e91f5eedde65db6630021f737.json | 17 | ||||
-rw-r--r-- | .sqlx/query-bb9c6a42084b92c339a85f9b1c094959a49c6b7383f1a0b49df242e2720a9185.json | 34 | ||||
-rw-r--r-- | .sqlx/query-f179f38584f97842cd41159dd2293fa19e5f1975ea8810526924e77683ba92c4.json (renamed from .sqlx/query-6a81887a8b44b527ad04c8963d5186b764ec9125d597f9fba566e280bd09d352.json) | 21 |
5 files changed, 71 insertions, 57 deletions
diff --git a/.sqlx/query-3ed66b56b7e78a6b6bad9d49c49607520a8d09f902b996467dddf58737a3757f.json b/.sqlx/query-3ed66b56b7e78a6b6bad9d49c49607520a8d09f902b996467dddf58737a3757f.json deleted file mode 100644 index feedac8..0000000 --- a/.sqlx/query-3ed66b56b7e78a6b6bad9d49c49607520a8d09f902b996467dddf58737a3757f.json +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | { | ||
2 | "db_name": "PostgreSQL", | ||
3 | "query": "\n INSERT INTO devices (id, mac, broadcast_addr)\n VALUES ($1, $2, $3);\n ", | ||
4 | "describe": { | ||
5 | "columns": [], | ||
6 | "parameters": { | ||
7 | "Left": [ | ||
8 | "Text", | ||
9 | "Text", | ||
10 | "Text" | ||
11 | ] | ||
12 | }, | ||
13 | "nullable": [] | ||
14 | }, | ||
15 | "hash": "3ed66b56b7e78a6b6bad9d49c49607520a8d09f902b996467dddf58737a3757f" | ||
16 | } | ||
diff --git a/.sqlx/query-82c11b5a47389884e4ed945b87dfcee9067933c4df892609700c0766c20fc5c5.json b/.sqlx/query-82c11b5a47389884e4ed945b87dfcee9067933c4df892609700c0766c20fc5c5.json new file mode 100644 index 0000000..c0a933d --- /dev/null +++ b/.sqlx/query-82c11b5a47389884e4ed945b87dfcee9067933c4df892609700c0766c20fc5c5.json | |||
@@ -0,0 +1,40 @@ | |||
1 | { | ||
2 | "db_name": "PostgreSQL", | ||
3 | "query": "\n SELECT id, mac, broadcast_addr, ip\n FROM devices\n WHERE id = $1;\n ", | ||
4 | "describe": { | ||
5 | "columns": [ | ||
6 | { | ||
7 | "ordinal": 0, | ||
8 | "name": "id", | ||
9 | "type_info": "Varchar" | ||
10 | }, | ||
11 | { | ||
12 | "ordinal": 1, | ||
13 | "name": "mac", | ||
14 | "type_info": "Varchar" | ||
15 | }, | ||
16 | { | ||
17 | "ordinal": 2, | ||
18 | "name": "broadcast_addr", | ||
19 | "type_info": "Varchar" | ||
20 | }, | ||
21 | { | ||
22 | "ordinal": 3, | ||
23 | "name": "ip", | ||
24 | "type_info": "Varchar" | ||
25 | } | ||
26 | ], | ||
27 | "parameters": { | ||
28 | "Left": [ | ||
29 | "Text" | ||
30 | ] | ||
31 | }, | ||
32 | "nullable": [ | ||
33 | false, | ||
34 | false, | ||
35 | false, | ||
36 | false | ||
37 | ] | ||
38 | }, | ||
39 | "hash": "82c11b5a47389884e4ed945b87dfcee9067933c4df892609700c0766c20fc5c5" | ||
40 | } | ||
diff --git a/.sqlx/query-adead45e1a6b02d5eabd68b8cf06394a302d288e91f5eedde65db6630021f737.json b/.sqlx/query-adead45e1a6b02d5eabd68b8cf06394a302d288e91f5eedde65db6630021f737.json new file mode 100644 index 0000000..bc4bdd3 --- /dev/null +++ b/.sqlx/query-adead45e1a6b02d5eabd68b8cf06394a302d288e91f5eedde65db6630021f737.json | |||
@@ -0,0 +1,17 @@ | |||
1 | { | ||
2 | "db_name": "PostgreSQL", | ||
3 | "query": "\n INSERT INTO devices (id, mac, broadcast_addr, ip)\n VALUES ($1, $2, $3, $4);\n ", | ||
4 | "describe": { | ||
5 | "columns": [], | ||
6 | "parameters": { | ||
7 | "Left": [ | ||
8 | "Varchar", | ||
9 | "Varchar", | ||
10 | "Varchar", | ||
11 | "Varchar" | ||
12 | ] | ||
13 | }, | ||
14 | "nullable": [] | ||
15 | }, | ||
16 | "hash": "adead45e1a6b02d5eabd68b8cf06394a302d288e91f5eedde65db6630021f737" | ||
17 | } | ||
diff --git a/.sqlx/query-bb9c6a42084b92c339a85f9b1c094959a49c6b7383f1a0b49df242e2720a9185.json b/.sqlx/query-bb9c6a42084b92c339a85f9b1c094959a49c6b7383f1a0b49df242e2720a9185.json deleted file mode 100644 index efd2830..0000000 --- a/.sqlx/query-bb9c6a42084b92c339a85f9b1c094959a49c6b7383f1a0b49df242e2720a9185.json +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | { | ||
2 | "db_name": "PostgreSQL", | ||
3 | "query": "\n SELECT id, mac, broadcast_addr\n FROM devices\n WHERE id = $1;\n ", | ||
4 | "describe": { | ||
5 | "columns": [ | ||
6 | { | ||
7 | "ordinal": 0, | ||
8 | "name": "id", | ||
9 | "type_info": "Text" | ||
10 | }, | ||
11 | { | ||
12 | "ordinal": 1, | ||
13 | "name": "mac", | ||
14 | "type_info": "Text" | ||
15 | }, | ||
16 | { | ||
17 | "ordinal": 2, | ||
18 | "name": "broadcast_addr", | ||
19 | "type_info": "Text" | ||
20 | } | ||
21 | ], | ||
22 | "parameters": { | ||
23 | "Left": [ | ||
24 | "Text" | ||
25 | ] | ||
26 | }, | ||
27 | "nullable": [ | ||
28 | false, | ||
29 | false, | ||
30 | false | ||
31 | ] | ||
32 | }, | ||
33 | "hash": "bb9c6a42084b92c339a85f9b1c094959a49c6b7383f1a0b49df242e2720a9185" | ||
34 | } | ||
diff --git a/.sqlx/query-6a81887a8b44b527ad04c8963d5186b764ec9125d597f9fba566e280bd09d352.json b/.sqlx/query-f179f38584f97842cd41159dd2293fa19e5f1975ea8810526924e77683ba92c4.json index 89f6bbe..322db91 100644 --- a/.sqlx/query-6a81887a8b44b527ad04c8963d5186b764ec9125d597f9fba566e280bd09d352.json +++ b/.sqlx/query-f179f38584f97842cd41159dd2293fa19e5f1975ea8810526924e77683ba92c4.json | |||
@@ -1,36 +1,43 @@ | |||
1 | { | 1 | { |
2 | "db_name": "PostgreSQL", | 2 | "db_name": "PostgreSQL", |
3 | "query": "\n UPDATE devices\n SET mac = $1, broadcast_addr = $2 WHERE id = $3\n RETURNING id, mac, broadcast_addr;\n ", | 3 | "query": "\n UPDATE devices\n SET mac = $1, broadcast_addr = $2, ip = $3 WHERE id = $4\n RETURNING id, mac, broadcast_addr, ip;\n ", |
4 | "describe": { | 4 | "describe": { |
5 | "columns": [ | 5 | "columns": [ |
6 | { | 6 | { |
7 | "ordinal": 0, | 7 | "ordinal": 0, |
8 | "name": "id", | 8 | "name": "id", |
9 | "type_info": "Text" | 9 | "type_info": "Varchar" |
10 | }, | 10 | }, |
11 | { | 11 | { |
12 | "ordinal": 1, | 12 | "ordinal": 1, |
13 | "name": "mac", | 13 | "name": "mac", |
14 | "type_info": "Text" | 14 | "type_info": "Varchar" |
15 | }, | 15 | }, |
16 | { | 16 | { |
17 | "ordinal": 2, | 17 | "ordinal": 2, |
18 | "name": "broadcast_addr", | 18 | "name": "broadcast_addr", |
19 | "type_info": "Text" | 19 | "type_info": "Varchar" |
20 | }, | ||
21 | { | ||
22 | "ordinal": 3, | ||
23 | "name": "ip", | ||
24 | "type_info": "Varchar" | ||
20 | } | 25 | } |
21 | ], | 26 | ], |
22 | "parameters": { | 27 | "parameters": { |
23 | "Left": [ | 28 | "Left": [ |
24 | "Text", | 29 | "Varchar", |
25 | "Text", | 30 | "Varchar", |
31 | "Varchar", | ||
26 | "Text" | 32 | "Text" |
27 | ] | 33 | ] |
28 | }, | 34 | }, |
29 | "nullable": [ | 35 | "nullable": [ |
30 | false, | 36 | false, |
31 | false, | 37 | false, |
38 | false, | ||
32 | false | 39 | false |
33 | ] | 40 | ] |
34 | }, | 41 | }, |
35 | "hash": "6a81887a8b44b527ad04c8963d5186b764ec9125d597f9fba566e280bd09d352" | 42 | "hash": "f179f38584f97842cd41159dd2293fa19e5f1975ea8810526924e77683ba92c4" |
36 | } | 43 | } |