ExprField: This class represents an SQL field.

ExprFieldR Documentation

This class represents an SQL field.

Description

This class represents an SQL field.

This class represents an SQL field.

Details

Used to define a field to be used inside a SELECT or UPDATE statement.

Super classes

sqlq::Statement -> sqlq::Expr -> ExprField

Methods

Public methods

Inherited methods

Method new()

Initializer.

Usage
ExprField$new(name, tabl = NULL)
Arguments
name

The field name.

tabl

The table name.

Returns

Nothing.


Method getTable()

Return the associted table.

Usage
ExprField$getTable()
Returns

The associated table, as a character value, NA if no table is defined.


Method getTokens()

Generate the list of tokens representing this statement.

Usage
ExprField$getTokens()
Returns

A list of Token objects.


Method clone()

The objects of this class are cloneable with this method.

Usage
ExprField$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

# To generate the reference to field "title" in table "books":
ExprField$new("title", tabl="books")


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