clickhouse_ecto v0.3.0 ClickhouseEcto.Storage View Source
Link to this section Summary
Link to this section Functions
Returns the status of a storage given by options.
Can return :up
, :down
or {:error, term}
in case anything goes wrong.
Examples
storage_status(username: "postgres",
database: "ecto_test",
hostname: "localhost")
Callback implementation for Ecto.Adapter.Storage.storage_status/1
.
Creates the storage given by options.
Returns :ok
if it was created successfully.
Returns {:error, :already_up}
if the storage has already been created or
{:error, term}
in case anything else goes wrong.
Examples
storage_up(username: "postgres",
database: "ecto_test",
hostname: "localhost")
Callback implementation for Ecto.Adapter.Storage.storage_up/1
.