-
Notifications
You must be signed in to change notification settings - Fork 1
/
sqlx-data.json
147 lines (147 loc) · 3.79 KB
/
sqlx-data.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
"db": "SQLite",
"14d7fe9d60cadc281ec961ffc609a3d65c3ef8bd99d9121d5c16bddf37892600": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Right": 1
}
},
"query": "INSERT INTO relays(url) VALUES (?) ON CONFLICT(url) DO NOTHING"
},
"581c9bdc7a76a831276f55ec43bac4c2faef7e8de4bc197d718ce6bf82a6768d": {
"describe": {
"columns": [
{
"name": "event",
"ordinal": 0,
"type_info": "Text"
},
{
"name": "nip05_hours: u16",
"ordinal": 1,
"type_info": "Int"
}
],
"nullable": [
false,
null
],
"parameters": {
"Right": 1
}
},
"query": "\nSELECT event, (unixepoch('now') - unixepoch(nip05_verified)) / 3600 AS \"nip05_hours: u16\"\nFROM metadata\nWHERE author = ?\n"
},
"5b220dc4706cc098871f6f81659ac09d696802c06e183c4005e8baf10e5540bf": {
"describe": {
"columns": [
{
"name": "url",
"ordinal": 0,
"type_info": "Text"
}
],
"nullable": [
false
],
"parameters": {
"Right": 1
}
},
"query": "\nSELECT url FROM relays\nWHERE url IN (SELECT relay FROM textnotes_relays WHERE textnote = ?)"
},
"5f8493e81f7cb2eb8cccc49522c237b7557bd46afb5d1e65a65834bddbd00583": {
"describe": {
"columns": [
{
"name": "hours?: u32",
"ordinal": 0,
"type_info": "Int"
}
],
"nullable": [
false
],
"parameters": {
"Right": 1
}
},
"query": "\nSELECT (unixepoch('now') - unixepoch(nip05_verified)) / 60 / 60 AS \"hours?: u32\"\nFROM metadata WHERE author = ?"
},
"6de5a37bc0c893a505bfd31903b39969363f2637f6406546bdf8bac48a05ef41": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Right": 2
}
},
"query": "INSERT INTO textnotes (id, event) VALUES (?, ?)"
},
"82b4c37a52dca01fef7840835c4eece80e2613021c9df4dcb2dfd8e23ca4d1a0": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Right": 2
}
},
"query": "\nINSERT INTO relays(url, information, updated)\nVALUES (?, ?, CURRENT_TIMESTAMP)\nON CONFLICT(url) DO UPDATE SET\n information = EXCLUDED.information,\n updated = EXCLUDED.updated\n"
},
"9b7c9222313ff614369097339cb3d3faaa798a4f812c4b1aba97ea62feaed6cf": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Right": 2
}
},
"query": "INSERT INTO textnotes_relays (textnote, relay) VALUES (?, ?)"
},
"c1649e400797f9eb38cd710b5d759c30d7b82d6c20c66af6b1845f396f021270": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Right": 2
}
},
"query": "\nINSERT INTO metadata (author, event) VALUES (?, ?)\nON CONFLICT (author) DO UPDATE SET event = EXCLUDED.event\n"
},
"d91c36934b68cebc69ef679d429c617978a15afe22d22a7c7089e2c94c195876": {
"describe": {
"columns": [
{
"name": "url",
"ordinal": 0,
"type_info": "Text"
},
{
"name": "old: bool",
"ordinal": 1,
"type_info": "Int"
}
],
"nullable": [
false,
false
],
"parameters": {
"Right": 0
}
},
"query": "\nSELECT\n url,\n information IS NULL OR unixepoch('now') - unixepoch(updated) > 60 * 60 AS \"old: bool\"\nFROM relays\n"
},
"f1d221a16deb319fc3058ce991331f39d59d509a3f7862d873387675c9404ab0": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Right": 1
}
},
"query": "\nUPDATE metadata SET nip05_verified = datetime('now')\nWHERE author = ?"
}
}