QuerySelect: Class for the SELECT query.

QuerySelectR Documentation

Class for the SELECT query.

Description

Class for the SELECT query.

Class for the SELECT query.

Details

This class represents an SQL SELECT query. See make_select() and make_select_all() factory functions to create more easily a SELECT query.

Super class

sqlq::Query -> QuerySelect

Methods

Public methods

Inherited methods

Method new()

Initializer.

Usage
QuerySelect$new(select, from)
Arguments
select

A StmtSelect instance.

from

A StmtFrom instance.

Returns

Nothing.


Method clone()

The objects of this class are cloneable with this method.

Usage
QuerySelect$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also

make_select, make_select_all

Examples

# Here is a simple SELECT * query:
select <- QuerySelect$new(select = StmtSelectAll$new(),
                          from = StmtFrom$new("books"))


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