31 lines
860 B
JSON
31 lines
860 B
JSON
{
|
|
"db_name": "PostgreSQL",
|
|
"query": "\nSELECT\n w.settings['disable_search_indexing']::boolean as disable_search_indexing,\n CASE\n WHEN w.settings['disable_search_indexing']::boolean THEN\n FALSE\n ELSE\n EXISTS (SELECT 1 FROM af_collab_embeddings m WHERE m.partition_key = $3 AND m.oid = $2)\n END as has_index\nFROM af_workspace w\nWHERE w.workspace_id = $1",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"ordinal": 0,
|
|
"name": "disable_search_indexing",
|
|
"type_info": "Bool"
|
|
},
|
|
{
|
|
"ordinal": 1,
|
|
"name": "has_index",
|
|
"type_info": "Bool"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Text",
|
|
"Int4"
|
|
]
|
|
},
|
|
"nullable": [
|
|
null,
|
|
null
|
|
]
|
|
},
|
|
"hash": "773aac7e401c3e6c04d1dc8ea412b9678b7227832a3487270d724f623072fe89"
|
|
}
|