{ "db_name": "PostgreSQL", "query": "SELECT t.id AS thread_id,\n t.title AS thread_title,\n c.name AS category_name,\n c.slug AS category_slug,\n p.created_at AS \"post_created_at: chrono::DateTime\",\n (t.author_id = $2) AS \"is_thread_author!\"\n FROM posts p\n JOIN threads t ON t.id = p.thread_id\n JOIN categories c ON c.id = t.category_id\n WHERE c.community_id = $1\n AND p.author_id = $2\n AND p.removed_at IS NULL\n AND p.deleted_at IS NULL\n AND t.deleted_at IS NULL\n ORDER BY p.created_at DESC\n LIMIT $3", "describe": { "columns": [ { "ordinal": 0, "name": "thread_id", "type_info": "Uuid" }, { "ordinal": 1, "name": "thread_title", "type_info": "Text" }, { "ordinal": 2, "name": "category_name", "type_info": "Text" }, { "ordinal": 3, "name": "category_slug", "type_info": "Text" }, { "ordinal": 4, "name": "post_created_at: chrono::DateTime", "type_info": "Timestamptz" }, { "ordinal": 5, "name": "is_thread_author!", "type_info": "Bool" } ], "parameters": { "Left": [ "Uuid", "Uuid", "Int8" ] }, "nullable": [ false, false, false, false, false, null ] }, "hash": "150877ff6d3dd6d1c8034f0f5f9af152b5759f9c0b7e0c3549b636be95f65f89" }