Constant GET_BLOCK

Source
pub const GET_BLOCK: &str = "SELECT\n    solution_set.content_addr\nFROM\n    block\n    LEFT JOIN block_solution_set ON block.id = block_solution_set.block_id\n    LEFT JOIN solution_set ON block_solution_set.solution_set_id = solution_set.id\nWHERE\n    block.block_address = :block_address\nORDER BY\n    block_solution_set.solution_set_index ASC\n";
Expand description
SELECT
    solution_set.content_addr
FROM
    block
    LEFT JOIN block_solution_set ON block.id = block_solution_set.block_id
    LEFT JOIN solution_set ON block_solution_set.solution_set_id = solution_set.id
WHERE
    block.block_address = :block_address
ORDER BY
    block_solution_set.solution_set_index ASC