Skip to content

Commit

Permalink
Add print method for <sql_clause>
Browse files Browse the repository at this point in the history
  • Loading branch information
mgirlich committed Jul 4, 2023
1 parent 6f88454 commit 09cb679
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/sql-clause.R
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ sql_clause_where_exists <- function(table, where, not) {
)
}

#' @export
print.sql_clause <- function(x, ...) {
out <- sql_format_clause(x, lvl = 0, con = simulate_dbi())
cat("<sql clause>", out)
}

# helpers -----------------------------------------------------------------

sql_format_clauses <- function(clauses, lvl, con) {
Expand Down

0 comments on commit 09cb679

Please sign in to comment.