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
Creates a organization
Creates a project
Gets a single organization
Returns the list of organizations
Returns the list of projects
Updates a organization
Updates a project
Link to this section Functions
Returns an %Ecto.Changeset{} for tracking organization changes.
Examples
iex> change_organization(organization)
%Ecto.Changeset{source: %Organization{}}
Returns an %Ecto.Changeset{} for tracking project changes.
Examples
iex> change_project(project)
%Ecto.Changeset{source: %Project{}}
Returns an %Ecto.Changeset{} for tracking project_tag changes.
Examples
iex> change_project_tag(project_tag)
%Ecto.Changeset{source: %ProjectTag{}}
Creates a organization.
Examples
iex> create_organization(%{field: value})
{:ok, %Organization{}}
iex> create_organization(%{field: bad_value})
{:error, %Ecto.Changeset{}}
Creates a project.
Examples
iex> create_project(%{field: value})
{:ok, %Project{}}
iex> create_project(%{field: bad_value})
{:error, %Ecto.Changeset{}}
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)
Returns the list of organizations.
Examples
iex> list_organizations()
[%Organization{}, ...]
Returns the list of projects.
Examples
iex> list_projects()
[%Project{}, ...]
Updates a organization.
Examples
iex> update_organization(organization, %{field: new_value})
{:ok, %Organization{}}
iex> update_organization(organization, %{field: bad_value})
{:error, %Ecto.Changeset{}}
Updates a project.
Examples
iex> update_project(project, %{field: new_value})
{:ok, %Project{}}
iex> update_project(project, %{field: bad_value})
{:error, %Ecto.Changeset{}}