Current section

Files

Jump to
exd_streams lib exd_streams core tables.ex
Raw

lib/exd_streams/core/tables.ex

defmodule ExdStreams.Tables do
@moduledoc """
The queries context.
"""
alias ExdStreams.Tables.{
Table,
TableService
}
defdelegate list_tables(role, pagination), to: TableService, as: :list
defdelegate get_table!(role, id), to: TableService, as: :get!
defdelegate create_table(role, attrs), to: TableService, as: :create
defdelegate delete_table(role, attrs), to: TableService, as: :delete
end