Skip to content

Commit

Permalink
Add information about tracking the "before" state
Browse files Browse the repository at this point in the history
  • Loading branch information
exAspArk committed Sep 17, 2024
1 parent cef1986 commit f5a4887
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ And of course, you need a PostgreSQL database that you want to connect to to tra
ALTER SYSTEM SET wal_level = logical;
```

To track both the "before" and "after" states on data changes, please run the following SQL command:

```sql
ALTER TABLE [tracked_table_name] REPLICA IDENTITY FULL;
```

## Quickstart for local development

### Running with Docker
Expand Down
3 changes: 3 additions & 0 deletions docs/docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ keywords: ['Bemi Changelog', 'Bemi New Features', 'Postgres Audit Trails', 'Chan
* [Bemi Core](https://github.com/BemiHQ/bemi)
* Insert records in batches sequentially to avoid overloading the database at scale
* Update local Docker image path
* [Bemi TypeORM](https://github.com/BemiHQ/bemi-typeorm)
* Allow calling `setContext` multiple times
* Validate the passed context payload size
* [Bemi MikroORM](https://github.com/BemiHQ/bemi-mikro-orm)
* Create a new JS/TS package to allow passing application context with data changes

Expand Down

0 comments on commit f5a4887

Please sign in to comment.