Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ktoso/bryce-jdbc-akka
https://github.com/ktoso/bryce-jdbc-akka
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ktoso/bryce-jdbc-akka
- Owner: ktoso
- Created: 2016-04-12T11:35:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-06-12T18:12:00.000Z (over 8 years ago)
- Last Synced: 2024-12-07T01:44:06.281Z (about 1 month ago)
- Language: Scala
- Size: 1000 Bytes
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Using different journals in Akka Sharding / Persistence
======```
DROP TABLE IF EXISTS ktoso.journal;CREATE TABLE IF NOT EXISTS ktoso.journal (
persistence_id VARCHAR(255) NOT NULL,
sequence_number BIGINT NOT NULL,
created BIGINT NOT NULL,
tags VARCHAR(255) DEFAULT NULL,
message BYTEA NOT NULL,
PRIMARY KEY(persistence_id, sequence_number)
);DROP TABLE IF EXISTS ktoso.deleted_to;
CREATE TABLE IF NOT EXISTS ktoso.deleted_to (
persistence_id VARCHAR(255) NOT NULL,
deleted_to BIGINT NOT NULL
);DROP TABLE IF EXISTS ktoso.snapshot;
CREATE TABLE IF NOT EXISTS ktoso.snapshot (
persistence_id VARCHAR(255) NOT NULL,
sequence_number BIGINT NOT NULL,
created BIGINT NOT NULL,
snapshot BYTEA NOT NULL,
PRIMARY KEY(persistence_id, sequence_number)
);DROP TABLE IF EXISTS ktoso.sharding_journal;
CREATE TABLE IF NOT EXISTS ktoso.sharding_journal (
persistence_id VARCHAR(255) NOT NULL,
sequence_number BIGINT NOT NULL,
created BIGINT NOT NULL,
tags VARCHAR(255) DEFAULT NULL,
message BYTEA NOT NULL,
PRIMARY KEY(persistence_id, sequence_number)
);DROP TABLE IF EXISTS ktoso.sharding_deleted_to;
CREATE TABLE IF NOT EXISTS ktoso.sharding_deleted_to (
persistence_id VARCHAR(255) NOT NULL,
deleted_to BIGINT NOT NULL
);DROP TABLE IF EXISTS ktoso.sharding_snapshot;
CREATE TABLE IF NOT EXISTS ktoso.sharding_snapshot (
persistence_id VARCHAR(255) NOT NULL,
sequence_number BIGINT NOT NULL,
created BIGINT NOT NULL,
snapshot BYTEA NOT NULL,
PRIMARY KEY(persistence_id, sequence_number)
);
```