psql_execute_db.Rd
Execute PostgreSQL statements.
A string of the SQL statement to execute.
A string of a file path to the yaml configuration file.
The default value grabs the file path from the psql.config_path option
and uses NULL
if no value supplied.
A string of the name of value. The default value grabs
the value from the psql.config_value option and uses "default"
if no
value is supplied.
A scalar numeric of the number of rows affected by the statement.
The function open and closes its own database connection. You do not
need to close the database connection afterwards. This function is a
wrapper on DBI::dbExecute().
if (FALSE) { # \dontrun{
psql_execute_db(
"CREATE SCHEMA boat_count"
)
psql_execute_db(
"CREATE TABLE boat_count.input (
file_name TEXT NOT NULL,
comment TEXT)"
)
} # }