make_where: Create a WHERE clause.

View source: R/factories.R

make_whereR Documentation

Create a WHERE clause.

Description

Create a StmtWhere instance.

Usage

make_where(cond)

Arguments

cond

An Expr instance representing the condition for the WHERE clause.

Value

An instance of StmtWhere.

Examples

# To generate a WHERE clause checking if the "year" field is greater than
# 2000:
where <- make_where(ExprBinOp$new(ExprField$new("year"), ">",
                                  ExprValue$new(2000)))


sqlq documentation built on Sept. 16, 2025, 9:10 a.m.