Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Commit 263ee19

Browse files
committed
updated release notes and readme
1 parent cb3771c commit 263ee19

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,27 @@ Both journal and snapshot store share the same configuration keys (however they
2929
- `class` (string with fully qualified type name) - determines class to be used as a persistent journal. Default: *Akka.Persistence.PostgreSql.Journal.PostgreSqlJournal, Akka.Persistence.PostgreSql* (for journal) and *Akka.Persistence.PostgreSql.Snapshot.PostgreSqlSnapshotStore, Akka.Persistence.PostgreSql* (for snapshot store).
3030
- `plugin-dispatcher` (string with configuration path) - describes a message dispatcher for persistent journal. Default: *akka.actor.default-dispatcher*
3131
- `connection-string` - connection string used to access PostgreSql database. Default: *none*.
32+
- `connection-string-name` - in case when connection-string is empty, this field specifies entry in the \*.config connection string section, from where connection string will be taken. Default: *none*.
3233
- `connection-timeout` - timespan determining default connection timeouts on database-related operations. Default: *30s*
3334
- `schema-name` - name of the database schema, where journal or snapshot store tables should be placed. Default: *public*
3435
- `table-name` - name of the table used by either journal or snapshot store. Default: *event_journal* (for journal) or *snapshot_store* (for snapshot store)
3536
- `auto-initialize` - flag determining if journal or snapshot store related tables should by automatically created when they have not been found in connected database. Default: *false*
37+
- `timestamp-provider` (journal only) - type of the object used to generate journal event timestamps. Default: *Akka.Persistence.Sql.Common.Journal.DefaultTimestampProvider, Akka.Persistence.Sql.Common*
3638

3739
### Custom SQL data queries
3840

3941
PostgreSql persistence plugin defines a default table schema used for both journal and snapshot store.
4042

4143
**EventJournal table**:
4244

43-
+----------------+-------------+------------+---------------+---------+
44-
| persistence_id | sequence_nr | is_deleted | payload_type | payload |
45-
+----------------+-------------+------------+---------------+---------+
46-
| varchar(200) | bigint | boolean | varchar(500) | bytea |
47-
+----------------+-------------+------------+---------------+---------+
48-
45+
+----------------+-------------+------------+---------------+---------+--------------------------+
46+
| persistence_id | sequence_nr | is_deleted | payload_type | payload | created_at |
47+
+----------------+-------------+------------+---------------+---------+--------------------------+
48+
| varchar(200) | bigint | boolean | varchar(500) | bytea | timestamp with time zone |
49+
+----------------+-------------+------------+---------------+---------+--------------------------+
50+
4951
**SnapshotStore table**:
50-
52+
5153
+----------------+--------------+--------------------------+------------------+---------------+----------+
5254
| persistence_id | sequence_nr | created_at | created_at_ticks | snapshot_type | snapshot |
5355
+----------------+--------------+--------------------------+------------------+--------------------------+
@@ -59,9 +61,9 @@ PostgreSql persistence plugin defines a default table schema used for both journ
5961
Underneath Akka.Persistence.PostgreSql uses the Npgsql library to communicate with the database. You may choose not to use a dedicated built in ones, but to create your own being better fit for your use case. To do so, you have to create your own versions of `IJournalQueryBuilder` and `IJournalQueryMapper` (for custom journals) or `ISnapshotQueryBuilder` and `ISnapshotQueryMapper` (for custom snapshot store) and then attach inside journal, just like in the example below:
6062

6163
```csharp
62-
class MyCustomPostgreSqlJournal: Akka.Persistence.PostgreSql.Journal.PostgreSqlJournal
64+
class MyCustomPostgreSqlJournal: Akka.Persistence.PostgreSql.Journal.PostgreSqlJournal
6365
{
64-
public MyCustomPostgreSqlJournal() : base()
66+
public MyCustomPostgreSqlJournal() : base()
6567
{
6668
QueryBuilder = new MyCustomJournalQueryBuilder();
6769
QueryMapper = new MyCustomJournalQueryMapper();

RELEASE_NOTES.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
#### 1.0.5 August 08 2015 ####
22

3+
- Changed tables schema: renamed payload_type column to manifest for journal and snapshot tables
4+
- Changed tables schema: added created_at column to journal table
5+
- Added compatibility with Persistent queries API
6+
- Added ability to specify connection string stored in \*.config files
7+
38
#### 1.0.4 August 07 2015 ####
49

510
#### 1.0.3 June 12 2015 ####
611
**Bugfix release for Akka.NET v1.0.2.**
712

8-
This release addresses an issue with Akka.Persistence.SqlServer and Akka.Persistence.PostgreSql where both packages were missing a reference to Akka.Persistence.Sql.Common.
13+
This release addresses an issue with Akka.Persistence.SqlServer and Akka.Persistence.PostgreSql where both packages were missing a reference to Akka.Persistence.Sql.Common.
914

1015
In Akka.NET v1.0.3 we've packaged Akka.Persistence.Sql.Common into its own NuGet package and referenced it in the affected packages.
1116

0 commit comments

Comments
 (0)