Overview

The Pekko Persistence R2DBC plugin allows for using SQL database with R2DBC as a backend for Pekko Persistence.

Currently, the R2DBC plugin has support for PostgreSQL and Yugabyte. It is specifically designed to work well for distributed SQL databases.

Create an issue if you would like to contribute support for other databases that has a R2DBC driver.

Warning

The project is currently under development and there are no guarantees for binary compatibility and the schema may change.

Project Info

Project Info: Pekko Persistence R2DBC
Artifact
org.apache.pekko
pekko-persistence-r2dbc
1.0.0
JDK versions
OpenJDK 8
OpenJDK 11
OpenJDK 17
Scala versions2.12.19, 2.13.13, 3.3.3
JPMS module namepekko.persistence.r2dbc
License
Forums
Release notesGithub releases
IssuesGithub issues
Sourceshttps://github.com/apache/incubator-pekko-persistence-r2dbc

Dependencies

Maven
<properties>
  <scala.binary.version>2.13</scala.binary.version>
</properties>
<dependencies>
  <dependency>
    <groupId>org.apache.pekko</groupId>
    <artifactId>pekko-persistence-r2dbc_${scala.binary.version}</artifactId>
    <version>1.0.0</version>
  </dependency>
</dependencies>
sbt
libraryDependencies += "org.apache.pekko" %% "pekko-persistence-r2dbc" % "1.0.0"
Gradle
def versions = [
  ScalaBinary: "2.13"
]
dependencies {
  implementation "org.apache.pekko:pekko-persistence-r2dbc_${versions.ScalaBinary}:1.0.0"
}

This plugin depends on Pekko 1.0.2 or later, and note that it is important that all pekko-* dependencies are in the same version, so it is recommended to depend on them explicitly to avoid problems with transient dependencies causing an unlucky mix of versions.