make_select_all: Create an SQL SELECT query for all fields.

View source: R/factories.R

make_select_allR Documentation

Create an SQL SELECT query for all fields.

Description

Create a QuerySelectAll instance (i.e.: select *) to retrieve all fields of a table.

Usage

make_select_all(
  tabl,
  distinct = FALSE,
  limit = NULL,
  where = NULL,
  join = NULL
)

Arguments

tabl

A table name.

distinct

If set to TRUE, add the distinct keyword.

limit

Add a limit (integer value) to the number of records returned.

where

Set a StmtWhere instance to add a where clause.

join

Set a StmtJoin instance to add a join clause.

Value

A instance of QuerySelect.

Examples

# Here is a simple SELECT * query:
make_select_all("books")


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