Skip to content

Commit

Permalink
error can be captured in sql chunk (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
cderv authored Oct 22, 2020
1 parent 5e7943e commit 23df434
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions 115-engine-sql.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,11 @@ WHERE name = ?packageReadR
readrPackage
```

```{sql, connection=db}
DROP TABLE IF EXISTS packages
```

```{sql, connection=db, error = TRUE}
SELECT * FROM packages
```

14 changes: 14 additions & 0 deletions 115-engine-sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,17 @@ readrPackage
## 1 1 readr
```


```sql
DROP TABLE IF EXISTS packages
```


```sql
SELECT * FROM packages
```

```
## Error: no such table: packages
```

0 comments on commit 23df434

Please sign in to comment.