clickhouse_ecto v0.2.2 ClickhouseEcto.Connection View Source
Link to this section Summary
Functions
Receives options and returns DBConnection
supervisor child specification
Executes the given prepared query with DBConnection
Prepares and executes the given query with DBConnection
Returns a stream that prepares and executes the given query with DBConnection
Link to this section Types
The cache query which is a DBConnection Query
The prepared query which is an SQL command
Link to this section Functions
Receives options and returns DBConnection
supervisor child specification.
Link to this function
execute(conn, query, params, options)
View Source
execute(connection :: DBConnection.t(), prepared_query :: cached(), params :: [term()], options :: Keyword.t()) :: {:ok, term()} | {:error | :reset, Exception.t()}
execute(connection :: DBConnection.t(), prepared_query :: prepared(), params :: [term()], options :: Keyword.t()) :: {:ok, term()} | {:error, Exception.t()}
Executes the given prepared query with DBConnection
.
Link to this function
prepare_execute(conn, name, prepared_query, params, options)
View Source
prepare_execute(connection :: DBConnection.t(), name :: String.t(), prepared(), params :: [term()], options :: Keyword.t()) :: {:ok, query :: map(), term()} | {:error, Exception.t()}
Prepares and executes the given query with DBConnection
.
Link to this function
stream(conn, prepared, params, options)
View Source
stream(connection :: DBConnection.conn(), prepared_query :: prepared(), params :: [term()], options :: Keyword.t()) :: Enum.t()
Returns a stream that prepares and executes the given query with DBConnection
.