feat: mpe_audit table

This commit is contained in:
Allan Bowe 2022-04-21 12:34:29 +00:00
parent a581088618
commit b993fe9e45
4 changed files with 49 additions and 1 deletions

8
.gitpod.yml Normal file
View File

@ -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

29
docs/mpe_audit.md Normal file
View File

@ -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

View File

@ -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

11
package-lock.json generated
View File

@ -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": {}
}
}
}