We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
as_table
1 parent 8626ba7 commit 6bc433bCopy full SHA for 6bc433b
src/pipeline.jl
@@ -202,18 +202,19 @@ connection `con` as the table `name`. This function can be used with
202
a `do`-block like this:
203
204
```jldoctest
205
-using DuckDB: DBInterface, DB
+using DuckDB: DBInterface, DB, query
206
+using DataFrames: DataFrame
207
208
con = DBInterface.connect(DB)
209
210
as_table(con, "mytbl", (;col=collect(1:5))) do con, name
- DD.query(con, "SELECT col, col+2 as 'shift_2' FROM '\$name'")
211
+ query(con, "SELECT col, col+2 as 'shift_2' FROM '\$name'")
212
end |> DataFrame
213
214
# output
215
216
5×2 DataFrame
-Row │ col shift_2
217
+ Row │ col shift_2
218
│ Int64? Int64?
219
─────┼─────────────────
220
1 │ 1 3
0 commit comments