Skip to content

Commit 05a5185

Browse files
committed
Add ref to list of DataStreams implementations
1 parent 9df77e9 commit 05a5185

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ Passing `append=true` as a keyword argument will cause the resultset to be _appe
7979

8080
To get the results as a `DataFrame`, you can just do `MySQL.query(conn, sql, DataFrame)`.
8181

82+
See list of DataStreams implementations [here](https://github.com/JuliaData/DataStreams.jl#list-of-known-implementations)
83+
8284
```julia
8385
MySQL.Query(conn, sql, sink=Data.Table; append::Bool=false) => MySQL.Query
8486
```

src/MySQL.jl

+4-2
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,15 @@ function execute!(conn::Connection, sql::String)
9696
end
9797

9898
"""
99-
MySQL.query(conn, sql, sink=Data.Table; append::Bool=false) => sink
99+
MySQL.query(conn, sql, sink=Data.Table, args...; append::Bool=false) => sink
100100
101-
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.
101+
execute an sql statement and return the results in `sink`, which can be any valid `Data.Sink` (interface from DataStreams.jl), and `args...` are any necessary arguments to the sink. 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.
104104
105105
To get the results as a `DataFrame`, you can just do `MySQL.query(conn, sql, DataFrame)`.
106+
107+
See list of DataStreams implementations [here](https://github.com/JuliaData/DataStreams.jl#list-of-known-implementations)
106108
"""
107109
function query end
108110

0 commit comments

Comments
 (0)