Skip to content

Commit

Permalink
Add execute/3 to mysql adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
choptastic committed Jul 16, 2014
1 parent e14abc7 commit 58f975e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/db_adapters/boss_db_adapter_mysql.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-behaviour(boss_db_adapter).
-export([init/1, terminate/1, start/1, stop/0, find/2, find/7, find_by_sql/4]).
-export([count/3, counter/2, incr/3, delete/2, save_record/2]).
-export([push/2, pop/2, dump/1, execute/2, transaction/2]).
-export([push/2, pop/2, dump/1, execute/2, execute/3, transaction/2]).
-export([get_migrations_table/1, migration_done/3]).
-compile(export_all).
start(_) ->
Expand Down Expand Up @@ -201,6 +201,9 @@ dump(_Conn) -> "".
execute(Pid, Commands) ->
fetch(Pid, Commands).

execute(Pid, Commands, Params) ->
fetch(Pid, Commands, Params).

transaction(Pid, TransactionFun) when is_function(TransactionFun) ->
do_transaction(Pid, TransactionFun).

Expand Down

0 comments on commit 58f975e

Please sign in to comment.