Refine.FacetsTable
(Refine v0.1.2)
Copy Markdown
Facets table functions.
Summary
Types
@type create_facets_table_return() :: {:ok, String.t()} | {:error, :column_not_found, String.t()} | {:error, :column_names_not_unique} | {:error, :facets_table_exists, String.t()} | {:error, :identity_column_already_exists, String.t()} | {:error, :identity_column_invalid_type, String.t()} | {:error, :identity_column_not_found, String.t()} | {:error, :invalid_table_name, String.t()} | {:error, :table_names_not_unique} | {:error, Exception.t()}
@type database_option() :: {:repo, repo()} | postgrex_option()
@type facets_config() :: [facet_config()]
@type repo() :: module()
Functions
@spec create_facets_table(facets_table_config(), [database_option()]) :: create_facets_table_return()
@spec create_facets_table_if_not_exists( facets_table_config(), [database_option()] ) :: create_facets_table_return()
@spec drop_facets_table(facets_table_config(), [database_option()]) :: {:ok, String.t()} | {:error, :table_not_found} | {:error, Exception.t()}