servicex_matching v0.0.1 ServicexMatching.Organizations

The Organizations context.

Link to this section Summary

Functions

Returns an %Ecto.Changeset{} for tracking organization changes

Returns an %Ecto.Changeset{} for tracking project changes

Returns an %Ecto.Changeset{} for tracking project_tag changes

Gets a single organization

Returns the list of organizations

Returns the list of projects

Updates a project

Link to this section Functions

Link to this function change_organization(organization)

Returns an %Ecto.Changeset{} for tracking organization changes.

Examples

iex> change_organization(organization)
%Ecto.Changeset{source: %Organization{}}
Link to this function change_project(project)

Returns an %Ecto.Changeset{} for tracking project changes.

Examples

iex> change_project(project)
%Ecto.Changeset{source: %Project{}}
Link to this function change_project_tag(project_tag)

Returns an %Ecto.Changeset{} for tracking project_tag changes.

Examples

iex> change_project_tag(project_tag)
%Ecto.Changeset{source: %ProjectTag{}}
Link to this function create_my_organization(user_id, attrs \\ %{})

Creates a organization.

Examples

iex> create_organization(%{field: value})
{:ok, %Organization{}}

iex> create_organization(%{field: bad_value})
{:error, %Ecto.Changeset{}}
Link to this function create_my_project(user_id, attrs \\ %{})

Creates a project.

Examples

iex> create_project(%{field: value})
{:ok, %Project{}}

iex> create_project(%{field: bad_value})
{:error, %Ecto.Changeset{}}
Link to this function get_organization!(id)

Gets a single organization.

Raises Ecto.NoResultsError if the Organization does not exist.

Examples

iex> get_organization!(123)
%Organization{}

iex> get_organization!(456)
** (Ecto.NoResultsError)
Link to this function list_organizations()

Returns the list of organizations.

Examples

iex> list_organizations()
[%Organization{}, ...]
Link to this function list_project_by_user_id(user_id)
Link to this function list_projects()

Returns the list of projects.

Examples

iex> list_projects()
[%Project{}, ...]
Link to this function update_organization(organization, attrs)

Updates a organization.

Examples

iex> update_organization(organization, %{field: new_value})
{:ok, %Organization{}}

iex> update_organization(organization, %{field: bad_value})
{:error, %Ecto.Changeset{}}
Link to this function update_project(project, attrs)

Updates a project.

Examples

iex> update_project(project, %{field: new_value})
{:ok, %Project{}}

iex> update_project(project, %{field: bad_value})
{:error, %Ecto.Changeset{}}