Constant PRED_DATA
Source pub const PRED_DATA: &str = "INSERT\n OR IGNORE INTO pred_data (\n solution_id,\n pred_data_index,\n value\n )\nVALUES\n (\n (\n SELECT\n solution.id\n FROM\n solution\n JOIN solution_set ON solution_set.id = solution.solution_set_id\n WHERE\n solution_set.content_addr = :solution_set_addr AND solution.solution_index = :solution_index\n LIMIT\n 1\n ), :pred_data_index, :value\n );\n";
Expand description
INSERT
OR IGNORE INTO pred_data (
solution_id,
pred_data_index,
value
)
VALUES
(
(
SELECT
solution.id
FROM
solution
JOIN solution_set ON solution_set.id = solution.solution_set_id
WHERE
solution_set.content_addr = :solution_set_addr AND solution.solution_index = :solution_index
LIMIT
1
), :pred_data_index, :value
);