Query: This class handles an SQL Query.

QueryR Documentation

This class handles an SQL Query.

Description

This class handles an SQL Query.

This class handles an SQL Query.

Details

This class represents an SQL query.

Methods

Public methods


Method new()

Initializer.

Usage
Query$new(stmts)
Arguments
stmts

A character vector of statement class names. It describes the accepted statements and their order, using wildcards to indicate if a statement is optional, or if it is allowed to occur multiple times. Example: c("Select", "From", "Join*", "Where?", "Limit?")

Returns

Nothing.


Method add()

Add a statement.

Usage
Query$add(stmt)
Arguments
stmt

The statement to add.

Returns

Nothing.


Method toString()

Generates the string representation of this query.

Usage
Query$toString()
Returns

A string containing the full SQL query.


Method clone()

The objects of this class are cloneable with this method.

Usage
Query$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.