Skip to content

Commit 4449ae1

Browse files
sglyonquinnj
authored andcommitted
DOC: fix depwarn message to tell user to use Query |> sink not query |> sink (#120)
1 parent 808930c commit 4449ae1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MySQL.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ function query end
105105

106106
function query(conn::Connection, sql::String, sink::Union{Type, Nothing}=nothing, args...; append::Bool=false, kwargs...)
107107
if sink === nothing
108-
Base.depwarn("`MySQL.query(conn, sql)` will return a MySQL.Query in the future; to materialize the result, use `MySQL.query(conn, sql) |> columntable` or `MySQL.query(conn, sql) |> DataFrame` instead", nothing)
108+
Base.depwarn("`MySQL.query(conn, sql)` will return a MySQL.Query in the future; to materialize the result, use `MySQL.Query(conn, sql) |> columntable` or `MySQL.Query(conn, sql) |> DataFrame` instead", nothing)
109109
sink = columntable
110110
else
111-
Base.depwarn("`MySQL.query(conn, sql, $sink)` is deprecated; use `MySQL.query(conn, sql) |> $sink(args...)` instead", nothing)
111+
Base.depwarn("`MySQL.query(conn, sql, $sink)` is deprecated; use `MySQL.Query(conn, sql) |> $sink(args...)` instead", nothing)
112112
end
113113
if append
114114
Base.depwarn("`append=true` is deprecated; use sink-specific append features instead. For example, `columntable(existing, MySQL.query(conn, sql))` or `append!(existing_df, MySQL.query(conn, sql))`")

0 commit comments

Comments
 (0)