AshClickhouse — an Ash Framework data layer for ClickHouse.
This library implements the Ash.DataLayer behaviour so that Ash resources
can be backed by a ClickHouse columnar OLAP database. It uses the
clickhouse client under the hood.
Quick start
defmodule MyApp.Repo do
use AshClickhouse.Repo, otp_app: :my_app
end
defmodule MyApp.User do
use Ash.Resource,
data_layer: AshClickhouse.DataLayer,
domain: MyApp.Domain
clickhouse do
table "users"
repo MyApp.Repo
end
attributes do
uuid_primary_key :id
attribute :name, :string
attribute :email, :string
end
actions do
defaults [:create, :read, :update, :destroy]
end
endSee AshClickhouse.DataLayer for the full list of supported features and
AshClickhouse.Repo for connection configuration.