Skip to contents

Creates and manages a global database pool connection using PostgreSQL.

Usage

db_pool_open(
  host = NULL,
  port = NULL,
  db_name = NULL,
  user = NULL,
  password = NULL,
  min_size = 1,
  max_size = Inf
)

Format

An R6 class object

Arguments

host

Database host

port

Database port

db_name

Database name

user

Database username

password

Database password

min_size

Minimum pool size (default: 1)

max_size

Maximum pool size (default: Inf)

Value

A database pool object