Skip to content

Commit

Permalink
pipeline.jl: fix typo in as_table code example
Browse files Browse the repository at this point in the history
  • Loading branch information
suvayu committed Oct 22, 2024
1 parent 8626ba7 commit 6bc433b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pipeline.jl
Original file line number Diff line number Diff line change
Expand Up @@ -202,18 +202,19 @@ connection `con` as the table `name`. This function can be used with
a `do`-block like this:
```jldoctest
using DuckDB: DBInterface, DB
using DuckDB: DBInterface, DB, query
using DataFrames: DataFrame
con = DBInterface.connect(DB)
as_table(con, "mytbl", (;col=collect(1:5))) do con, name
DD.query(con, "SELECT col, col+2 as 'shift_2' FROM '\$name'")
query(con, "SELECT col, col+2 as 'shift_2' FROM '\$name'")
end |> DataFrame
# output
5×2 DataFrame
Row │ col shift_2
Row │ col shift_2
│ Int64? Int64?
─────┼─────────────────
1 │ 1 3
Expand Down

0 comments on commit 6bc433b

Please # to comment.