StmtInsert: INSERT INTO statement.

StmtInsertR Documentation

INSERT INTO statement.

Description

INSERT INTO statement.

INSERT INTO statement.

Super class

sqlq::Statement -> StmtInsert

Methods

Public methods

Inherited methods

Method new()

Initializer.

Usage
StmtInsert$new(tabl, fields)
Arguments
tabl

A table name.

fields

An instance of ExprListFields

Returns

Nothing.


Method getTokens()

Generates the list of tokens representing this statement.

Usage
StmtInsert$getTokens()
Returns

A list of Token objects.


Method clone()

The objects of this class are cloneable with this method.

Usage
StmtInsert$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

# Simple INSERT statement:
fields <- c('author', 'title', 'year')
insert <- StmtInsert$new(tabl = 'books', fields = make_fields(fields))


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