Refine. FacetsTable
(Refine v0.4.0)
Copy Markdown
Facets table functions.
Summary
Types
@type create_facets_table_return() :: {:ok, String.t()} | {:error, :column_not_found, 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_distinct} | {:error, :facets_table_exists, String.t()} | {:error, Exception.t()}
@type database_options() :: [ {:repo, repo()} | {:otp_app, atom()} | postgrex_options() ]
@type facet_configs() :: [facet_config()]
@type repo() :: module()
@type table_columns() :: [Sublimate.TableColumnData.t()]
Functions
@spec create_facets_table(facets_table_config(), database_options()) :: create_facets_table_return()
@spec create_facets_table_if_not_exists( facets_table_config(), database_options() ) :: create_facets_table_return()
@spec drop_facets_table(facets_table_config(), database_options()) :: {:ok, String.t()} | {:error, :table_not_found} | {:error, Exception.t()}