Generate a PostgreSQL CREATE DATABASE statement, optionally execute the statement if con is not NULL.
createDATABASE(
name,
owner = NULL,
template = NULL,
encoding = NULL,
locale = NULL,
lc_collate = NULL,
lc_ctype = NULL,
tablespace = NULL,
allow_connections = NULL,
connection_limit = NULL,
is_template = NULL,
con = NULL
)
A string, PostgreSQL CREATE DATABASE statement; or the results retrieved by DBI::dbSendQuery after executing the statement.
A string, the "name" parameter for PostgreSQL CREATE DATABASE.
A string, the "user_name" parameter for PostgreSQL CREATE DATABASE.
A string, the "template" parameter for PostgreSQL CREATE DATABASE.
A string, the "encoding" parameter for PostgreSQL CREATE DATABASE.
A string, the "locale" parameter for PostgreSQL CREATE DATABASE
A string, the "lc_collate" parameter for PostgreSQL CREATE DATABASE.
A string, the "lc_ctype" parameter for PostgreSQL CREATE DATABASE.
A string, the "tablespace_name" parameter for PostgreSQL CREATE DATABASE.
A string, the "allowconn" parameter for PostgreSQL CREATE DATABASE.
A string, the "connlimit" parameter for PostgreSQL CREATE DATABASE.
A string, the "istemplate" parameter for PostgreSQL CREATE DATABASE.
A database connection that can be passed to DBI::dbSendQuery/DBI::dbGetQuery.