Archeometer.Repo (Archeometer v0.5.0)
Common utilities for interacting with the database.
Link to this section Summary
Functions
Execute the given query and returns a Archeometer.Result
structure with all
rows.
Link to this section Functions
Link to this function
all(query, bindings \\ [], db_name \\ default_db_name())
Execute the given query and returns a Archeometer.Result
structure with all
rows.
The query can be a raw string to be executed directly with the given bindings. In that case the resulting structure won't have header information.
The query can also be a tuple {:ok, %Archeometer.Query{}}
. Consecuentyl the
result of Archeoemter.Query.from
can be piped directly. In this case the
bindings
field will be ignored, as the bindings are stored on the Query
structure.
Link to this function
db_has_tables?(tables, db_name \\ default_db_name())
Link to this function
db_ready?(mode, db_name \\ default_db_name())
Link to this function
default_db_name()
Link to this function
execute_raw(conn, query, bindings)
Link to this function