{
  "db_name": "PostgreSQL",
  "query": "\n            SELECT COUNT(*) as count\n            FROM credits_transactions\n            WHERE user_id = $1\n              AND ($2::text IS NULL OR description ILIKE '%' || $2 || '%')\n              AND ($3::text[] IS NULL OR transaction_type::text = ANY($3))\n              AND ($4::timestamptz IS NULL OR created_at >= $4)\n              AND ($5::timestamptz IS NULL OR created_at <= $5)\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "count",
        "type_info": "Int8"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid",
        "Text",
        "TextArray",
        "Timestamptz",
        "Timestamptz"
      ]
    },
    "nullable": [
      null
    ]
  },
  "hash": "af515d71c7467efd2d2a7b2ca5178b89652083a7252a340d5032a10abd8b0eca"
}
