tokenize_for_SQL: Cross-parse from an R parse tree into SQL.

View source: R/tokenize_for_sql.R

tokenize_for_SQLR Documentation

Cross-parse from an R parse tree into SQL.

Description

Cross-parse from an R parse tree into SQL.

Usage

tokenize_for_SQL(lexpr, colnames, env = parent.frame())

Arguments

lexpr

item from substitute

colnames

column names of table

env

environment to look for values

Value

sql info: list(presentation, parsed_toks(list of tokens), sql_text, symbols_used, symbols_produced, free_symbols)

Examples


tokenize_for_SQL(substitute(1 + 2), colnames= NULL)
tokenize_for_SQL(substitute(a := 3), colnames= NULL)
tokenize_for_SQL(substitute(a %:=% ( 3 + 4 )), colnames= NULL)


rquery documentation built on Aug. 20, 2023, 9:06 a.m.