sqlq-package | R Documentation |
Allows to build complex 'SQL' (Structured Query Language) queries dynamically. Classes and/or factory functions are used to produce a syntax tree from which the final character string is generated. Strings and identifiers are automatically quoted using the right quotes, using either ANSI (American National Standards Institute) quoting or the quoting style of an existing database connector. Style can be configured to set uppercase/lowercase for keywords, remove unnecessary spaces, or omit optional keywords.
sqlq package.
sqlq simplifies the creation of SQL queries, and ensure identifiers and string values are correctly quoted.
Global options used by sqlq:
sqlq_always_quote: If set to TRUE, token identifiers (table and column names) will always be quoted.
sqlq_conn: Set the database connector to use for quoting identifiers and values. Default is DBI::ANSI().
sqlq_omit_kwd: If set to TRUE, optional SQL keywords (like INNER or OUTER) will be omitted.
sqlq_spaces: If set to FALSE, try to avoid non-necessary spaces (e.g.: around operators or after a comma).
sqlq_uppercase: If set to FALSE, SQL keywords and alphabetical operators (e.g.: OR, AND, ...) will be written in lowercase.
Maintainer: Pierrick Roger pierrick.roger@cea.fr (ORCID)
options.
options(sqlq_uppercase = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.