diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..c4a7726 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,8 @@ +# This configuration file was automatically generated by Gitpod. +# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file) +# and commit this file to your remote git repository to share the goodness with others. + +tasks: + - init: npm install + + diff --git a/docs/mpe_audit.md b/docs/mpe_audit.md new file mode 100644 index 0000000..09ceafa --- /dev/null +++ b/docs/mpe_audit.md @@ -0,0 +1,29 @@ +--- +layout: article +title: MPE_AUDIT +description: The MPE_AUDIT table enables full change capture of data in SAS. It contains all deletes, modifications and additions by all users. +--- + +# MPE_AUDIT + +The MPE_AUDIT table contains all deletions, modifications and additions to data in Data Controller (or using the underlying [macros](/macros)). + +The underlying utility is open source and documented [here](https://core.sasjs.io/mp__storediffs_8sas.html). + +## Columns + + - LOAD_REF (PK). This is supplied to the `bitemporal_dataloader()` macro at backend, and corresponds to the unique folder in which the staged data resides. + - LIBREF (PK). The target libref. + - DSN (PK). The target table name. + - KEY_HASH (PK). This is a pipe seperated `md5()` hash of the primary key values - it uniquely identifies a single record. + - TGTVAR_NM (PK). Target variable name (32 chars) + - PROCESSED_DTTM. The timestamp at which the record was processed. + - MOVE_TYPE. Either (A)ppended, (D)eleted or (M)odified + - IS_PK. Set to 1 if the variable is part of the primary key. + - IS_DIFF. For modified records, is 1 for a change and 0 for no change. Set to -1 for appends / deletes. + - TGTVAR_TYPE. Either (C)haracter or (N)umeric + - OLDVAL_NUM. Old (numeric) value + - NEWVAL_NUM. New (numeric) value + - OLDVAL_CHAR. Old (character) value + - NEWVAL_CHAR. New (character) value + diff --git a/mkdocs.yml b/mkdocs.yml index 281d80b..398a05f 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -11,6 +11,8 @@ nav: - Filter Mechanism: filter.md - Table Viewer: dcu-tableviewer.md - Admin Services: admin-services.md +- Table Guide: + - MPE_AUDIT: mpe_audit.md - Configuration: - Dates / Datetimes: dcc-dates.md - Dynamic Cell Dropdown: dynamic-cell-dropdown.md diff --git a/package-lock.json b/package-lock.json index 1b19144..3d9ad71 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,14 @@ { "name": "dcdocs", "version": "1.1.1", - "lockfileVersion": 1 + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "dcdocs", + "version": "1.1.1", + "license": "ISC", + "devDependencies": {} + } + } }