# Functions
BatchHandlerError fails the process.
BatchHandlerLog prints a log line that reports the error in the given batch.
BatchHandlerNoop no operation.
BatchHandlerSaveToFile saves the errors to the given directory using the batch start row as file name.
No description provided by the author
No description provided by the author
No description provided by the author
WithBatchErrorHandler specifies which fail handler implementation to use.
WithBatchSize sets the rows processed on each batch.
WithColumns accepts a list of comma separated values for the csv columns.
WithCopyOptions appends the COPY options for the COPY operation.
WithEscapeCharacter sets the COPY option ESCAPE.
WithLimit limits the number of imported rows.
WithLogBatches prints a line for every processed batch.
WithLogger sets the logger where the application will print debug messages.
WithQuoteCharacter sets the COPY option QUOTE.
WithReportingFunction sets the function that will be called at ReportingPeriod with information about the copy progress.
WithReportingPeriod sets how often the reporting function will be called.
WithSchemaName sets the schema name.
WithSkipHeader is set, skips the first row of the csv file.
WithSkipHeaderCount sets the number of lines to skip at the beginning of the file.
WithSplitCharacter sets the COPY option DELIMITER.
WithVerbose enables logging.
WithWorkers sets the number of workers to use while processing the file.
# Constants
No description provided by the author
# Variables
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
BatchErrorHandler is how batch errors are handled It has the batch data so it can be inspected The error has the failure reason If the error is not handled properly, returning an error will stop the workers.
No description provided by the author
No description provided by the author