Config class that represents the configuration of a process. A configuration is a collection of parameters
data: Dict
Initialize self. See help(type(self)) for accurate signature.
bool
- True
Copy the config to a new Config with a new Id
Config
bool
- False
bool
- False
bool
- False
Returns all the parameters including default value if not provided
raises MissingConfigsException: If one or more mandatory params where not provided it raises a MissingConfigsException
Dict
str
ParamSpec
Dict
Returns the value of a parameter by its name
str
Any
Dict
str
bool
bool
Returns True if the model is saved in db, False otherwise
bool
bool
Test if a parameter exists
str
bool
ModelType
Sets the data
set force_insert to True to force creation of the object
set skip_hook to True to skip the before insert or update hook
ModelType
Dict
Sets the value of a parameter by its name
str
Any
bool
- False
Set config parameters
Dict
ConfigDTO
Export the config to a dict
bool
- False
ConfigSimpleDTO
bool
- True
Dict
Any
ParamSpec
Test if a parameter exists and is not none
str
bool
Any
Method call after all the table are inited
Useful when use DeferredForeignKey to create the foreign key manually latter
Method call after the table is created
Usefull to create the full text indexes
Any
Any
bool
- True
bool
- True
Any
Any
bool
- True
bool
- True
Any
Any
Any
Any
Any
Returns the name of the class
bool
- False
bool
- False
bool
- False
str
Returns True if the column exists in the table
str
bool
Any
Create a foreign key for a Foreign key field only if the foreign key does not exists
ForeignKeyField
Method to create a full text index
List
str
Create model table
Any
Drop model table
Execute a raw SQL query. Can use the [TABLE_NAME] to replace by the table name
str
Any
Any
str
bool
Import the config from a dto
ConfigSimpleDTO
Config
Returns the full name of the class
bool
- False
bool
- False
str
Any
Any
str
Optional
Get by ID and throw 404 error if object not found
str
ModelType
List
List
DatabaseProxy
Returns the (current) DbManager of this model
Type
Any
Any
Returns the table name of this class
str
Any
Returns True if the index exists in the table
str
bool
Get all the classes that inherit this class
List
Any
Any
Any
Any
Any
Any
Any
Any
Any
Any
Any
Any
Performs full-text search on the field. Must be overrided by child class to work
str
str
ModelSelect
Any
Any
Any
Any
Any
Any