Object
Object (BaseModel)
Class Methods
-
new(
**kwargs: dict) ->ObjectCreates a new instance of Object based on the arguments passed
-
all(
limit: int = 10,skip: int = 0) ->list[Object]Get a list with all currently active Object instances, skipping
skiprows -
filter(
lambda_f: LambdaFunction,limit: int = 10,skip: int = 0) ->list[Object]Get a list with all currently active Object instances that fullfill the condition passed in
lambda_f, skippingskiprows -
get_by_id(
id_param: str) ->ObjectReturns the active Object instance that has the specified id
-
get_table_res(
limit: int = 10,skip: int = 0,only_current: bool = True,only_active: bool = True) ->list[dict]Returns a list of dicts representing the table containing the data for all Object instances
Instance Methods
-
update(
**kwargs: dict) ->NoneModifies current Object instance with passed arguments
-
delete(
**kwargs: dict) ->NoneDeletes current Object instance
-
history(
**kwargs: dict) ->dict[str, list[dict]]Returns the complete history of rows for current Object instance in all relevant tables
-
to_dict(
**kwargs: dict) ->dictReturns a dictionary representation of current Object instance