Skip to content

Commit 9df77e9

Browse files
committed
Fix #96
1 parent 2ffe374 commit 9df77e9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ Execute an SQL statement and return the results in `sink`, which can be any vali
7777

7878
Passing `append=true` as a keyword argument will cause the resultset to be _appended_ to the sink instead of replacing.
7979

80+
To get the results as a `DataFrame`, you can just do `MySQL.query(conn, sql, DataFrame)`.
81+
8082
```julia
8183
MySQL.Query(conn, sql, sink=Data.Table; append::Bool=false) => MySQL.Query
8284
```

src/MySQL.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ end
101101
execute an sql statement and return the results in `sink`, which can be any valid `Data.Sink` (interface from DataStreams.jl). By default, a NamedTuple of Vectors are returned.
102102
103103
Passing `append=true` as a keyword argument will cause the resultset to be _appended_ to the sink instead of replacing.
104+
105+
To get the results as a `DataFrame`, you can just do `MySQL.query(conn, sql, DataFrame)`.
104106
"""
105107
function query end
106108

0 commit comments

Comments
 (0)