24 lines
742 B
JSON
24 lines
742 B
JSON
|
{
|
||
|
"db_name": "PostgreSQL",
|
||
|
"query": "SELECT\n EXISTS (\n SELECT\n file_name as name\n FROM\n files\n WHERE\n folder_id = $1\n AND file_name = $2\n UNION\n SELECT\n folder_name as name\n FROM\n folders\n WHERE\n parent_folder_id = $1\n AND folder_name = $2\n )",
|
||
|
"describe": {
|
||
|
"columns": [
|
||
|
{
|
||
|
"ordinal": 0,
|
||
|
"name": "exists",
|
||
|
"type_info": "Bool"
|
||
|
}
|
||
|
],
|
||
|
"parameters": {
|
||
|
"Left": [
|
||
|
"Uuid",
|
||
|
"Text"
|
||
|
]
|
||
|
},
|
||
|
"nullable": [
|
||
|
null
|
||
|
]
|
||
|
},
|
||
|
"hash": "443854b9fb234840588e0100774d3ab51c4532b14d50e5ca3578fe6311e2017a"
|
||
|
}
|