Documentation
¶
Overview ¶
Package model defines the generic, schema-less record shape that flows from a Source through the parser into a Target database. xpro-oss has no built-in knowledge of any particular XML schema — every field is driven by the column mapping in config.yaml.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Record ¶
type Record struct {
// SourceName is the source-relative file/object name this record was read from.
SourceName string
// Columns holds one entry per configured mapping field, in mapping order.
Columns []Column
}
Record is one parsed unit of work: the source file it came from and the mapped column values ready for insertion. The raw file content is not retained (a raw-XML column carries its own copy), so a batch of records does not pin every source file in memory.
func (Record) ColumnNames ¶
ColumnNames returns the column names in mapping order.