assign_table_function: Create one table function

View source: R/init.R

assign_table_functionR Documentation

Create one table function

Description

Create one table function

Usage

assign_table_function(
  table_name,
  con_id,
  env = parent.frame(),
  table_formatter = snakecase::to_snake_case,
  table_post = identity
)

Arguments

table_name

Name of the table

con_id

A short string describing a globally cached connection pool

env

Environment in which to create the table accessors, such as the global environment or a package namespace.

table_formatter

Optionally, a function to clean the table name before turning it into a function name, such as removing prefixes

table_post

Post-processing to perform on each table before returning it


dgrtwo/dbcooper documentation built on Nov. 18, 2023, 6:24 p.m.