Statement: Abstract class that represents an SQL statement.

StatementR Documentation

Abstract class that represents an SQL statement.

Description

Abstract class that represents an SQL statement.

Abstract class that represents an SQL statement.

Details

This abstract class represents an SQL statement (FROM, SELECT, WHERE, ...). Note that expressions (Expr class) are a particular type of Statement in sqlq.

Methods

Public methods


Method new()

Initializer

Usage
Statement$new()
Returns

Nothing.


Method getTokens()

Generates the list of tokens representing this statement.

Usage
Statement$getTokens()
Returns

A list of Token objects.


Method toString()

Generates the string representation of this statement.

Usage
Statement$toString()
Returns

A string containing the SQL expression.


Method clone()

The objects of this class are cloneable with this method.

Usage
Statement$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

# No example provided, as this class is abstract.


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