Exqlite.Queries (exqlite v0.2.0) View Source
The interface to manage cached prepared queries.
Link to this section Summary
Functions
Clears the entire prepared query cache.
Gets an existing prepared query if it exists. Otherwise nil is returned.
Link to this section Types
Specs
t() :: :ets.tid()
Link to this section Functions
Specs
clear(t()) :: :ok
Clears the entire prepared query cache.
Specs
delete(nil) :: :ok
delete(t()) :: :ok
Specs
delete(t(), Exqlite.Query.t()) :: :error
delete(t(), Exqlite.Query.t()) :: :error
delete(t(), Exqlite.Query.t()) :: :ok | :error
Specs
get(t(), Exqlite.Query.t()) :: nil
get(t(), Exqlite.Query.t()) :: nil
get(t(), Exqlite.Query.t()) :: Exqlite.Query.t() | nil
Gets an existing prepared query if it exists. Otherwise nil is returned.
Specs
Specs
put(t(), Exqlite.Query.t()) :: :error
put(t(), Exqlite.Query.t()) :: :error
put(t(), Exqlite.Query.t()) :: :error
put(t(), Exqlite.Query.t()) :: :ok | :error