Documentation ¶
Overview ¶
Package chiv archives relational database tables to Amazon S3.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultFormat is CSV. DefaultFormat = CSV // ErrRecordLength does not match the number of columns. ErrRecordLength = errors.New("record length does not match number of columns") // ErrParserRegex initialization problem. ErrParserRegex = errors.New("initializing parser regex") // ErrBuildingQuery string. ErrBuildingQuery = errors.New("building query") )
Functions ¶
Types ¶
type Archiver ¶
type Archiver struct {
// contains filtered or unexported fields
}
Archiver archives database tables to Amazon S3.
func NewArchiver ¶
NewArchiver constructs an archiver with the given database, S3 uploader and options. Options set on creation apply to all calls to Archive unless overridden.
type Formatter ¶
Formatter formats and writes records.
type FormatterFunc ¶
FormatterFunc returns an initialized Formatter.
type Option ¶
type Option func(*Archiver)
Option configures the Archiver. Options can be provided when creating an Archiver or on each call to Archive.
func WithColumns ¶
WithColumns configures a list of column names to archive.
func WithExtension ¶
WithExtension configures an extension for object keys uploaded to S3.
Click to show internal directories.
Click to hide internal directories.