mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
19 lines
958 B
Python
19 lines
958 B
Python
from UM.Settings.SQLQueryFactory import SQLQueryFactory
|
|
from UM.Settings.DatabaseContainerMetadataController import DatabaseMetadataContainerController
|
|
from UM.Settings.InstanceContainer import InstanceContainer
|
|
|
|
|
|
class VariantDatabaseHandler(DatabaseMetadataContainerController):
|
|
"""The Database handler for Variant containers"""
|
|
|
|
def __init__(self):
|
|
super().__init__(SQLQueryFactory(table = "variants",
|
|
fields = {
|
|
"id": "text",
|
|
"name": "text",
|
|
"hardware_type": "text",
|
|
"definition": "text",
|
|
"version": "text",
|
|
"setting_version": "text"
|
|
}))
|
|
self.container_type = InstanceContainer
|