Learn R Programming

rquery (version 0.2.0)

to_sql: Return SQL implementation of operation tree.

Description

Return SQL implementation of operation tree.

Usage

to_sql(x, db, ..., source_limit = NULL, indent_level = 0,
  tnum = mkTempNameGenerator("tsql"), append_cr = TRUE, using = NULL)

Arguments

x

rquery operation tree.

db

DBI database handle or rquery_db_info object.

...

generic additional arguments (not used).

source_limit

numeric if not NULL limit sources to this many rows.

indent_level

level to indent.

tnum

temp sub-query name generator.

append_cr

logical if TRUE end with CR.

using

character, if not NULL set of columns used from above.

Value

SQL command