Proxy
Abstract classes
Classes from which proxies will inherit.
AbstractCRUDableEntityTypeProxy
- pydantic model crudcreator.proxy.AbstractCRUDableEntityTypeProxy.AbstractCRUDableEntityTypeProxy[source]
Transforms a CRUDable entity type. This class must be inherited.
- field base: AbstractCRUDableEntityType [Required][source]
The type of entity to which the proxy plugs in and modifies behavior.
- field params: AbstractProxyParams [Required][source]
Parameters for customizing a proxy. It’s up to the AbstractProxyParams implementations to build as they should.
- classmethod build(
- proxy_params: AbstractProxyParams,
- base: AbstractCRUDableEntityType,
Method to call to instantiate a Proxy.
- Parameters:
proxy_params (AbstractProxyParams) – See above.
base (AbstractCRUDableEntityType) – See above.
- Return type:
- async create(
- params: CreateParams,
Overload if you want to change the create behavior.
- Parameters:
params (CreateParams) –
- async delete(
- params: DeleteParams,
Overload if you want to change the delete behavior.
- Parameters:
params (DeleteParams) –
- async read(
- params: ReadParams,
Overload if you want to change the read behavior.
- Parameters:
params (ReadParams) –
- Return type:
list[dict[str, Any]]
- async update(
- params: UpdateParams,
Overload if you want to change the update behavior.
- Parameters:
params (UpdateParams) –