Learn R Programming

pgTools (version 1.0.2)

insert_table_chunker: Helper function for INSERT

Description

Helper function for INSERT

Usage

insert_table_chunker(x, n_batches, batch_size)

Value

A list.

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.

Examples

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

Run the code above in your browser using DataLab