clickhouse_ecto v0.2.1 ClickhouseEcto.Query View Source

Link to this section Summary

Functions

Receives a query and must return a SELECT query

Clickhouse doesn’t support delete

Clickhouse doesn’t support delete

Returns an INSERT for the given rows in table returning the given returning

Clickhouse doesn’t support update

Receives a query and values to update and must return an UPDATE query

Link to this section Functions

Receives a query and must return a SELECT query.

Link to this function delete(prefix, table, filters, returning) View Source
delete(prefix :: String.t(), table :: String.t(), filters :: [atom()], returning :: [atom()]) :: String.t()

Clickhouse doesn’t support delete

Link to this function delete_all(query) View Source
delete_all(query :: Ecto.Query.t()) :: String.t()

Clickhouse doesn’t support delete

Link to this function insert(prefix, table, header, rows, on_conflict, returning) View Source
insert(prefix :: String.t(), table :: String.t(), header :: [atom()], rows :: [[atom() | nil]], on_conflict :: Ecto.Adapter.on_conflict(), returning :: [atom()]) :: String.t()

Returns an INSERT for the given rows in table returning the given returning.

Link to this function update(prefix, table, fields, filters, returning) View Source
update(prefix :: String.t(), table :: String.t(), fields :: [atom()], filters :: [atom()], returning :: [atom()]) :: String.t()

Clickhouse doesn’t support update

Link to this function update_all(query, prefix \\ nil) View Source

Receives a query and values to update and must return an UPDATE query.