View Source MishkaInstaller.Setting (Mishka Installer v0.0.4)

This module is for communication with Settings table and has essential functions such as adding, editing, deleting, and displaying. This module is related to module MishkaInstaller.Database.SettingSchema.

Link to this section Summary

Functions

This is an aggregation function that includes editing or adding by name.

Callback implementation for MishkaDeveloperTools.DB.CRUD.delete/1.

Callback implementation for MishkaDeveloperTools.DB.CRUD.edit/1.

Show all settings.

If you want to get the latest changes from the Settings table of your database, this function can help you to be subscribed.

Link to this section Functions

Link to this function

add_or_edit_by_name(data)

View Source

This is an aggregation function that includes editing or adding by name.

@spec allowed_fields(:atom | :string) :: nil | list()

Callback implementation for MishkaDeveloperTools.DB.CRUD.create/1.

Link to this function

create(attrs, allowed_fields)

View Source

See MishkaDeveloperTools.DB.CRUD.crud_add/1.

Callback implementation for MishkaDeveloperTools.DB.CRUD.delete/1.

Callback implementation for MishkaDeveloperTools.DB.CRUD.edit/1.

Link to this function

edit(attrs, allowed_fields)

View Source

See MishkaDeveloperTools.DB.CRUD.crud_edit/1.

@spec settings([
  {:conditions, {String.t() | integer(), String.t() | integer()}}
  | {:filters, map()},
  ...
]) :: any()

Show all settings.

Callback implementation for MishkaDeveloperTools.DB.CRUD.show_by_id/1.

See MishkaDeveloperTools.DB.CRUD.crud_get_by_field/2.

If you want to get the latest changes from the Settings table of your database, this function can help you to be subscribed.