View Source Statestores.Util (spawn_statestores v0.1.0)

Link to this section Summary

Link to this section Functions

@spec get_database_type() ::
  :cockroachdb | :mysql | :postgres | :sqlite | :mssql | :mongodb
Link to this function

get_default_database_port()

View Source
@spec get_default_database_port() :: <<_::32>>
Link to this function

get_default_database_port(atom)

View Source
@spec get_default_database_port(:mysql | :postgres) :: <<_::32>>
@spec load_app() :: :ok | {:error, any()}
@spec load_repo() ::
  Statestores.Adapters.MySQL
  | Statestores.Adapters.Postgres
  | Statestores.Adapters.SQLite3
  | Statestores.Adapters.MSSQL
  | Statestores.Adapters.MongoDB
@spec load_repo(:cockroachdb | :mysql | :postgres | :sqlite | :mssql | :mongodb) ::
  Statestores.Adapters.MySQL
  | Statestores.Adapters.Postgres
  | Statestores.Adapters.SQLite3
  | Statestores.Adapters.MSSQL
  | Statestores.Adapters.MongoDB