Skip to main content

Module dimensional_export

Module dimensional_export 

Source
Expand description

Dimensional (star-schema) export — a surrogate-key-normalized view of the general ledger for loading into common GL-analytics platforms.

Produces a fact table of journal-entry lines, where every dimension is an integer surrogate key, plus a lookup table per dimension (key → value) and a chart-of-accounts map (account key → account + description). Keys are assigned deterministically (sorted distinct value order) so the same ledger always yields the same encoding.

Generic by design — no tool/vendor/form-specific naming.

Structs§

AccountDimRow
A chart-of-accounts dimension row.
DimensionalExport
The full dimensional export: fact table + dimension lookups + COA map.
FactRow
A single fact row: one journal-entry line with its dimension keys.