35 lines
741 B
JSON
35 lines
741 B
JSON
|
{
|
||
|
"db_name": "PostgreSQL",
|
||
|
"query": "SELECT\n user_id, username, email\nFROM\n users\nORDER BY\n GREATEST (\n similarity (email, $1),\n similarity (username, $1)\n ) DESC",
|
||
|
"describe": {
|
||
|
"columns": [
|
||
|
{
|
||
|
"ordinal": 0,
|
||
|
"name": "user_id",
|
||
|
"type_info": "Int4"
|
||
|
},
|
||
|
{
|
||
|
"ordinal": 1,
|
||
|
"name": "username",
|
||
|
"type_info": "Varchar"
|
||
|
},
|
||
|
{
|
||
|
"ordinal": 2,
|
||
|
"name": "email",
|
||
|
"type_info": "Varchar"
|
||
|
}
|
||
|
],
|
||
|
"parameters": {
|
||
|
"Left": [
|
||
|
"Text"
|
||
|
]
|
||
|
},
|
||
|
"nullable": [
|
||
|
false,
|
||
|
false,
|
||
|
false
|
||
|
]
|
||
|
},
|
||
|
"hash": "61a26b3321bb5b58a0b90e61b2cdcacfb46a03eb0c0a89839c9b3eff53cb7e56"
|
||
|
}
|