exec_query(sql, name = "SQL", binds = [], prepare: false) public

Executes sql statement in the context of this connection using binds as the bind substitutes. name is logged along with the executed sql statement.

Note: the query is assumed to have side effects and the query cache will be cleared. If the query is read-only, consider using #select_all instead.

Show source
Register or log in to add new notes.