SQLQuery: SQLQuery

Description Usage Arguments Details Examples

Description

This class represents an SQLQuery, storing inside it all the information regarding a normal query. It can later be used to run against the database.

Usage

1
2
3
sql <- SQLQuery$new(query = "")

sql$toString()

Arguments

query

Character representation of an SQL query.

Details

$new(query = "") Creates an instance of SQLQuery.

$toString() Returns the SQL query inside the object as a string.

Examples

1
2
3
4
5
# Building a simple SQLQuery object and printing out its content.
query <- "SELECT * FROM tableName"
sqlQuery <- SQLQuery$new(query)

sqlQuery$toString()

PedroMiguelFMoreira/DBAbstractR documentation built on May 8, 2019, 1:28 a.m.