Skip to content

Commit

Permalink
Merge 27a708c into 5f4aa50
Browse files Browse the repository at this point in the history
  • Loading branch information
armetiz committed Feb 26, 2020
2 parents 5f4aa50 + 27a708c commit 217eb08
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/mariaex.ex
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,12 @@ defmodule Mariaex do
transaction.
### Options
* `:max_rows` - Maximum numbers of rows in a result (default to `#{@max_rows}`)
* `:query_type` - `:binary` to use binary protocol, `:text` to use text
protocol or `nil` to try binary but fallback to text (default `nil`)
## Example
Mariaex.transaction(pid, fn(conn) ->
stream = Mariaex.stream(conn, "SELECT id FROM posts WHERE title like $1", ["%my%"])
Expand Down

0 comments on commit 217eb08

Please sign in to comment.