insert_table_chunker {pgTools}R Documentation

Helper function for INSERT

Description

Helper function for INSERT

Usage

insert_table_chunker(x, n_batches, batch_size)

Arguments

x

A data table

n_batches

Integer, the number of batches needed to insert the data.

batch_size

Integer, the size of each batch.

Value

A list.

Examples

insert_table_chunker(as.data.table(list(c1 = c(1, 2, 3))), 1, 100)

[Package pgTools version 1.0.2 Index]