mmap/.sqlx/query-8fcc976536dcff8c9120ef11a020430d5fcc1a733a2de10453a38ae98741b89e.json
tsuki 1d0e96ead4
Some checks are pending
Docker Build and Push / build (push) Waiting to run
add blog system
2025-08-12 21:25:17 +08:00

72 lines
1.9 KiB
JSON

{
"db_name": "PostgreSQL",
"query": "\n SELECT id, title, slug, description, is_active, \n created_at as \"created_at: DateTime<Utc>\", \n updated_at as \"updated_at: DateTime<Utc>\", \n created_by, updated_by\n FROM pages \n WHERE is_active = true \n AND (title ILIKE $1 OR description ILIKE $1 OR slug ILIKE $1)\n ORDER BY \n CASE \n WHEN title ILIKE $1 THEN 1\n WHEN slug ILIKE $1 THEN 2\n ELSE 3\n END,\n updated_at DESC\n LIMIT $2\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Uuid"
},
{
"ordinal": 1,
"name": "title",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "slug",
"type_info": "Varchar"
},
{
"ordinal": 3,
"name": "description",
"type_info": "Text"
},
{
"ordinal": 4,
"name": "is_active",
"type_info": "Bool"
},
{
"ordinal": 5,
"name": "created_at: DateTime<Utc>",
"type_info": "Timestamptz"
},
{
"ordinal": 6,
"name": "updated_at: DateTime<Utc>",
"type_info": "Timestamptz"
},
{
"ordinal": 7,
"name": "created_by",
"type_info": "Uuid"
},
{
"ordinal": 8,
"name": "updated_by",
"type_info": "Uuid"
}
],
"parameters": {
"Left": [
"Text",
"Int8"
]
},
"nullable": [
false,
false,
false,
true,
false,
false,
false,
true,
true
]
},
"hash": "8fcc976536dcff8c9120ef11a020430d5fcc1a733a2de10453a38ae98741b89e"
}