@@ -195,9 +195,7 @@ function get_properties_dict(db: Database) {
195195 * This runs before the deduction starts.
196196 */
197197function delete_deduced_category_properties ( db : Database ) {
198- db . exec ( `
199- DELETE FROM category_property_assignments
200- WHERE is_deduced = TRUE` )
198+ db . prepare ( `DELETE FROM category_property_assignments WHERE is_deduced = TRUE` ) . run ( )
201199}
202200
203201/**
@@ -285,7 +283,7 @@ function deduce_satisfied_category_properties(
285283 `
286284
287285 try {
288- db . prepare ( insert_sql ) . run ( ... values )
286+ db . prepare ( insert_sql ) . run ( values )
289287 } catch ( err ) {
290288 if ( err instanceof SqliteError ) {
291289 if ( err . code . startsWith ( 'SQLITE_CONSTRAINT' ) ) {
@@ -395,7 +393,7 @@ function deduce_unsatisfied_category_properties(
395393 `
396394
397395 try {
398- db . prepare ( insert_query ) . run ( ... values )
396+ db . prepare ( insert_query ) . run ( values )
399397 } catch ( err ) {
400398 if ( err instanceof SqliteError ) {
401399 if ( err . code . startsWith ( 'SQLITE_CONSTRAINT' ) ) {
@@ -461,7 +459,7 @@ function deduce_dual_category_properties(
461459 (category_id, property_id, is_satisfied, reason, is_deduced)
462460 VALUES ${ value_fragments . join ( ',\n' ) } `
463461
464- db . prepare ( insert_query ) . run ( ... values )
462+ db . prepare ( insert_query ) . run ( values )
465463
466464 console . info (
467465 `Deduced ${ new_satisfied . size } satisfied properties by duality for ${ category . id } ` ,
@@ -486,7 +484,7 @@ function deduce_dual_category_properties(
486484 (category_id, property_id, is_satisfied, reason, is_deduced)
487485 VALUES ${ value_fragments . join ( ',\n' ) } `
488486
489- db . prepare ( insert_query ) . run ( ... values )
487+ db . prepare ( insert_query ) . run ( values )
490488
491489 console . info (
492490 `Deduced ${ new_unsatisfied . size } unsatisfied properties by duality for ${ category . id } ` ,
0 commit comments