-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsqlx-data.json
More file actions
169 lines (169 loc) · 4.38 KB
/
sqlx-data.json
File metadata and controls
169 lines (169 loc) · 4.38 KB
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
{
"db": "PostgreSQL",
"0e80d486db4dc94088cd3a06c1ce769d7c3e707c9c4bc6b6ac02f73b3d7f5ceb": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": []
}
},
"query": "GRANT EXECUTE ON FUNCTION pgbouncer.user_lookup(text) TO pgbouncer"
},
"23aa665a889a7c2293b8db14c64597f58c63445cac27ce9d53d1e81cf0360d30": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": []
}
},
"query": "REVOKE ALL ON FUNCTION pgbouncer.user_lookup(text) FROM public, pgbouncer"
},
"3bfc2094bb77b4b1be3105d909f776f1590c91d8f07a0118ca033b2ab82cf66e": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": []
}
},
"query": "CREATE SCHEMA IF NOT EXISTS pgbouncer"
},
"63e833dee94cc40d2f10b028555e6bc4faef2dad0106a0ff9a16bde0994296dc": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": []
}
},
"query": "CREATE USER pgbouncer WITH LOGIN NOSUPERUSER NOCREATEROLE NOCREATEDB NOREPLICATION NOBYPASSRLS"
},
"757e16b2183de2d582090116df4a22b1a71c2810a0cd203bc43555d43552020f": {
"describe": {
"columns": [
{
"name": "username!",
"ordinal": 0,
"type_info": "Name"
},
{
"name": "can_login!",
"ordinal": 1,
"type_info": "Bool"
},
{
"name": "create_db!",
"ordinal": 2,
"type_info": "Bool"
},
{
"name": "create_role!",
"ordinal": 3,
"type_info": "Bool"
},
{
"name": "bypass_rls!",
"ordinal": 4,
"type_info": "Bool"
},
{
"name": "superuser!",
"ordinal": 5,
"type_info": "Bool"
}
],
"nullable": [
true,
true,
true,
true,
true,
true
],
"parameters": {
"Left": [
"Name"
]
}
},
"query": "SELECT\n r.rolname as \"username!\",\n r.rolcanlogin as \"can_login!\",\n r.rolcreatedb as \"create_db!\",\n r.rolcreaterole as \"create_role!\",\n r.rolbypassrls as \"bypass_rls!\",\n r.rolsuper as \"superuser!\"\nFROM pg_catalog.pg_roles r\nWHERE r.rolname = $1;\n"
},
"bc526e442532558557f425a39a5bf22c9fcfcd36200773c63ab4f4699e955c07": {
"describe": {
"columns": [
{
"name": "oid",
"ordinal": 0,
"type_info": "Oid"
}
],
"nullable": [
false
],
"parameters": {
"Left": [
"Name"
]
}
},
"query": "SELECT oid FROM pg_catalog.pg_database WHERE datname = $1"
},
"c3d83cf96afe0625bbce0723ede2309cec340fcaab5a8b168381249e0af5d72a": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": []
}
},
"query": "-- Sets up the user lookup function\nCREATE OR REPLACE FUNCTION pgbouncer.user_lookup(in i_username text, out uname text, out phash text)\n RETURNS record AS $$\nBEGIN\n SELECT usename, passwd FROM pg_catalog.pg_shadow\n WHERE usename = i_username INTO uname, phash;\n RETURN;\nEND;\n$$ LANGUAGE plpgsql SECURITY DEFINER;\n"
},
"dbfb19a9bfc3a4aaa367c5e44698718392f36f4dc4ccff6f371c0a3a1674db18": {
"describe": {
"columns": [
{
"name": "test",
"ordinal": 0,
"type_info": "Int4"
}
],
"nullable": [
null
],
"parameters": {
"Left": []
}
},
"query": "SELECT 1 as test"
},
"e56811a476cf8a2466ea4196d3e12fe156cbeb025ed2ea7928eedb0e8205e6c4": {
"describe": {
"columns": [
{
"name": "oid",
"ordinal": 0,
"type_info": "Oid"
}
],
"nullable": [
false
],
"parameters": {
"Left": []
}
},
"query": "SELECT p.oid FROM pg_catalog.pg_proc p\n INNER JOIN pg_catalog.pg_namespace n\n ON p.pronamespace = n.oid\n WHERE p.proname = 'user_lookup' AND n.nspname = 'pgbouncer';\n"
},
"e8dc0b693e9d8a1f6ff56585c89b109655ba1d7e03dd66c01947ad089dd875be": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": []
}
},
"query": "GRANT USAGE ON SCHEMA pgbouncer TO pgbouncer"
}
}