Skip to content

Commit 6bc433b

Browse files
committed
pipeline.jl: fix typo in as_table code example
1 parent 8626ba7 commit 6bc433b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/pipeline.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,18 +202,19 @@ connection `con` as the table `name`. This function can be used with
202202
a `do`-block like this:
203203
204204
```jldoctest
205-
using DuckDB: DBInterface, DB
205+
using DuckDB: DBInterface, DB, query
206+
using DataFrames: DataFrame
206207
207208
con = DBInterface.connect(DB)
208209
209210
as_table(con, "mytbl", (;col=collect(1:5))) do con, name
210-
DD.query(con, "SELECT col, col+2 as 'shift_2' FROM '\$name'")
211+
query(con, "SELECT col, col+2 as 'shift_2' FROM '\$name'")
211212
end |> DataFrame
212213
213214
# output
214215
215216
5×2 DataFrame
216-
Row │ col shift_2
217+
Row │ col shift_2
217218
│ Int64? Int64?
218219
─────┼─────────────────
219220
1 │ 1 3

0 commit comments

Comments
 (0)