Skip to content

Commit

Permalink
Add 2024-08 changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
exAspArk committed Aug 8, 2024
1 parent b718481 commit 863e715
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
9 changes: 9 additions & 0 deletions docs/docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ keywords: ['Bemi Changelog', 'Bemi New Features', 'Postgres Audit Trails', 'Chan

# Changelog

## 2024-08

* Platform
* Store values from `DECIMAL`, `NUMERIC`, `MONEY` columns as `DOUBLE`
* [Bemi Prisma](https://github.com/BemiHQ/bemi-prisma)
* Allow context passing only for specific models with `includeModels`
* Fix compatibility with Prisma v5.15+
* Enable SQL comment affix customization

## 2024-07

* Dashboard
Expand Down
12 changes: 12 additions & 0 deletions docs/docs/orms/prisma.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,18 @@ Application context:

Application context will automatically include the original SQL query that performed data changes, which is generally useful for troubleshooting purposes.

If you want to enable context passing only for specific models, you can specify an `includeModels` list:

```ts title="src/prisma.ts"
import { withPgAdapter } from "@bemi-db/prisma";
import { PrismaClient } from '@prisma/client';

const prisma = withPgAdapter(
new PrismaClient(),
{ includeModels: ['User', 'Comment'] },
);
```

### Express.js

Add the `setContext` [Express.js](https://expressjs.com/) middleware to pass application context with all underlying data changes made within an HTTP request:
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/postgresql/destination-database.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ keywords: [Bemi, destination database, PostgreSQL, autoscaling, high availabilit

# Destination Database

Bemi automatically provisions a cloud-hosted PostgreSQL destination database cluster of three nodes to store all changes made in a source database.
Bemi automatically provisions and manages a serverless PostgreSQL destination database cluster of three nodes to store all changes made in a source database.
You have full control over this database which comes with additional features:

* Autoscaling, managed table partitioning and index optimization to improve performance
Expand Down

0 comments on commit 863e715

Please sign in to comment.