35 lines
897 B
JSON
35 lines
897 B
JSON
{
|
|
"db_name": "PostgreSQL",
|
|
"query": "SELECT\n permission_type as \"permission_type: PermissionRaw\"\nFROM\n permissions\nWHERE\n folder_id = $1\n AND user_id = $2\nUNION\nSELECT\n 'manage' as \"permission_type: PermissionRaw\"\nFROM\n folders\nWHERE\n folder_id = $1\n AND owner_id = $2",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"ordinal": 0,
|
|
"name": "permission_type: PermissionRaw",
|
|
"type_info": {
|
|
"Custom": {
|
|
"name": "permission",
|
|
"kind": {
|
|
"Enum": [
|
|
"read",
|
|
"write",
|
|
"manage"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Int4"
|
|
]
|
|
},
|
|
"nullable": [
|
|
null
|
|
]
|
|
},
|
|
"hash": "87f7df91208438a35516604f57f0443e0f12db718e23acd374f6f7ace65f467d"
|
|
}
|