Add delete to handlers

CURA-6096
This commit is contained in:
Jaime van Kessel 2021-08-27 14:36:04 +02:00
parent 55d6ff0e61
commit 3191baf5a0
3 changed files with 6 additions and 3 deletions

View file

@ -18,7 +18,8 @@ class IntentDatabaseHandler(DatabaseMetadataContainerController):
setting_version = ? setting_version = ?
WHERE id = ? WHERE id = ?
""", """,
select_query = "SELECT * FROM intents where id = ?", select_query = "SELECT * FROM intents WHERE id = ?",
delete_query = "DELETE FROM intents WHERE id = ?",
table_query="""CREATE TABLE intents table_query="""CREATE TABLE intents
( (
id text, id text,

View file

@ -18,7 +18,8 @@ class QualityDatabaseHandler(DatabaseMetadataContainerController):
setting_version = ? setting_version = ?
WHERE id = ? WHERE id = ?
""", """,
select_query = "SELECT * FROM qualities where id = ?", select_query = "SELECT * FROM qualities WHERE id = ?",
delete_query = "DELETE FROM qualities WHERE id = ?",
table_query = """CREATE TABLE qualities table_query = """CREATE TABLE qualities
( (
id text, id text,

View file

@ -15,7 +15,8 @@ class VariantDatabaseHandler(DatabaseMetadataContainerController):
setting_version = ? setting_version = ?
WHERE id = ? WHERE id = ?
""", """,
select_query= "SELECT * FROM variants where id = ?", select_query = "SELECT * FROM variants WHERE id = ?",
delete_query = "DELETE FROM variants WHERE id = ?",
table_query = """CREATE TABLE variants table_query = """CREATE TABLE variants
( (
id text, id text,