StmtValues: VALUES statement.

StmtValuesR Documentation

VALUES statement.

Description

VALUES statement.

VALUES statement.

Details

This class represents a SQL VALUES statement, used when inserting multiple rows.

Super class

sqlq::Statement -> StmtValues

Methods

Public methods

Inherited methods

Method new()

Initializer.

Usage
StmtValues$new(values)
Arguments
values

An instance of ExprListValues

Returns

Nothing.


Method getTokens()

Generates the list of tokens representing this statement.

Usage
StmtValues$getTokens()
Returns

A list of Token objects.


Method clone()

The objects of this class are cloneable with this method.

Usage
StmtValues$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

# Create a VALUES statement with two rows:
row1 <- ExprListValues$new(list(ExprValue$new("abc"), ExprValue$new(123)))
row2 <- ExprListValues$new(list(ExprValue$new("def"), ExprValue$new(456)))
values <- StmtValues$new(list(row1, row2))


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