rpostgis (version 1.4.3)

dbTableNameFix: Format input for database schema/table names.

Description

Internal rpostgis function to return common (length = 2) schema and table name vector from various table and schema + table name inputs.

Usage

dbTableNameFix(conn = NULL, t.nm, as.identifier = TRUE)

Value

character vector of length 2. Each character element is in (escaped) double-quotes when as.identifier = TRUE.

Arguments

conn

A connection object. Must be provided but can be set NULL, where a dummy connection will be used.

t.nm

Table name string, length 1-2.

as.identifier

Boolean whether to return (schema,table) name as database sanitized identifiers (TRUE) or as regular character (FALSE)