Ecto Schema Store v2.3.1 EctoSchemaStore.Assistant View Source
Provides macros to customize configuration aspects of a store module.
Link to this section Summary
Functions
Creates variations of the existing edit functions with a predefined configuration
Creates a preconfigured version of an existing edit function
Creates a preconfigured version of an existing edit function
Link to this section Functions
Creates variations of the existing edit functions with a predefined configuration.
Functions preconfigured:
insert
insert!
insert_fields
insert_fields!
validate_insert
update
update!
update_fields
update_fields!
validate_update
If using the name api
the follwing functions will be generate:
insert_api
insert_api!
insert_fields_api
insert_fields_api!
validate_insert_api
update_api
update_api!
update_fields_api
update_fields_api!
validate_update_api
Link to this macro
preconfigure_insert(name, predefined_options \\ [], action_prefix \\ "_", action_suffix \\ "")
View Source
(macro)
Creates a preconfigured version of an existing edit function.
preconfigure_insert :api, changeset: :mychangeset
preconfigure_insert :api, [changeset: :mychangeset], "_fields_", "!",
insert_api name: "Sample"
insert_api_fields! name: "Sample"
Link to this macro
preconfigure_update(name, predefined_options \\ [], action_prefix \\ "_", action_suffix \\ "")
View Source
(macro)
Creates a preconfigured version of an existing edit function.
preconfigure_update :api, changeset: :mychangeset
preconfigure_update :api, [changeset: :mychangeset], "_fields_", "!",
update_api name: "Sample"
update_api_fields! name: "Sample"