You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by fa...@apache.org on 2024/06/16 06:54:55 UTC
(pekko-persistence-jdbc) branch main updated (c362170 -> 89869b7)
This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-persistence-jdbc.git
from c362170 release notes for 1.1.0-M1 (#197)
new f4cdf3e Update scalafmt-core to 3.8.2
new 8de5f86 Reformat with scalafmt 3.8.2
new 89869b7 Add 'Reformat with scalafmt 3.8.2' to .git-blame-ignore-revs
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.git-blame-ignore-revs | 3 +++
.scalafmt.conf | 2 +-
.../pekko/persistence/jdbc/journal/JdbcAsyncWriteJournal.scala | 7 ++-----
.../pekko/persistence/jdbc/query/scaladsl/JdbcReadJournal.scala | 7 ++-----
.../apache/pekko/persistence/jdbc/snapshot/JdbcSnapshotStore.scala | 7 ++-----
.../pekko/persistence/jdbc/state/SequenceNextValUpdater.scala | 6 ++++--
.../org/apache/pekko/persistence/jdbc/query/QueryTestSpec.scala | 7 ++-----
7 files changed, 16 insertions(+), 23 deletions(-)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org
(pekko-persistence-jdbc) 02/03: Reformat with scalafmt 3.8.2
Posted by fa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-persistence-jdbc.git
commit 8de5f86a03390baf0280f5e3da7ff22b6369f770
Author: scala-steward-asf[bot] <14...@users.noreply.github.com>
AuthorDate: Sun Jun 16 00:15:57 2024 +0000
Reformat with scalafmt 3.8.2
Executed command: scalafmt --non-interactive
---
.../pekko/persistence/jdbc/journal/JdbcAsyncWriteJournal.scala | 7 ++-----
.../pekko/persistence/jdbc/query/scaladsl/JdbcReadJournal.scala | 7 ++-----
.../apache/pekko/persistence/jdbc/snapshot/JdbcSnapshotStore.scala | 7 ++-----
.../pekko/persistence/jdbc/state/SequenceNextValUpdater.scala | 6 ++++--
.../org/apache/pekko/persistence/jdbc/query/QueryTestSpec.scala | 7 ++-----
5 files changed, 12 insertions(+), 22 deletions(-)
diff --git a/core/src/main/scala/org/apache/pekko/persistence/jdbc/journal/JdbcAsyncWriteJournal.scala b/core/src/main/scala/org/apache/pekko/persistence/jdbc/journal/JdbcAsyncWriteJournal.scala
index cbc798d..3dafed3 100644
--- a/core/src/main/scala/org/apache/pekko/persistence/jdbc/journal/JdbcAsyncWriteJournal.scala
+++ b/core/src/main/scala/org/apache/pekko/persistence/jdbc/journal/JdbcAsyncWriteJournal.scala
@@ -66,11 +66,8 @@ class JdbcAsyncWriteJournal(config: Config) extends AsyncWriteJournal {
val fqcn = journalConfig.pluginConfig.dao
val profile: JdbcProfile = slickDb.profile
val args = Seq(
- (classOf[Database], db),
- (classOf[JdbcProfile], profile),
- (classOf[JournalConfig], journalConfig),
- (classOf[Serialization], SerializationExtension(system)),
- (classOf[ExecutionContext], ec),
+ (classOf[Database], db), (classOf[JdbcProfile], profile), (classOf[JournalConfig], journalConfig),
+ (classOf[Serialization], SerializationExtension(system)), (classOf[ExecutionContext], ec),
(classOf[Materializer], mat))
system.asInstanceOf[ExtendedActorSystem].dynamicAccess.createInstanceFor[JournalDao](fqcn, args) match {
case Success(dao) => dao
diff --git a/core/src/main/scala/org/apache/pekko/persistence/jdbc/query/scaladsl/JdbcReadJournal.scala b/core/src/main/scala/org/apache/pekko/persistence/jdbc/query/scaladsl/JdbcReadJournal.scala
index 352721d..633644e 100644
--- a/core/src/main/scala/org/apache/pekko/persistence/jdbc/query/scaladsl/JdbcReadJournal.scala
+++ b/core/src/main/scala/org/apache/pekko/persistence/jdbc/query/scaladsl/JdbcReadJournal.scala
@@ -77,11 +77,8 @@ class JdbcReadJournal(config: Config, configPath: String)(implicit val system: E
val fqcn = readJournalConfig.pluginConfig.dao
val profile: JdbcProfile = slickDb.profile
val args = Seq(
- (classOf[Database], db),
- (classOf[JdbcProfile], profile),
- (classOf[ReadJournalConfig], readJournalConfig),
- (classOf[Serialization], SerializationExtension(system)),
- (classOf[ExecutionContext], ec),
+ (classOf[Database], db), (classOf[JdbcProfile], profile), (classOf[ReadJournalConfig], readJournalConfig),
+ (classOf[Serialization], SerializationExtension(system)), (classOf[ExecutionContext], ec),
(classOf[Materializer], mat))
system.dynamicAccess.createInstanceFor[ReadJournalDao](fqcn, args) match {
case Success(dao) => dao
diff --git a/core/src/main/scala/org/apache/pekko/persistence/jdbc/snapshot/JdbcSnapshotStore.scala b/core/src/main/scala/org/apache/pekko/persistence/jdbc/snapshot/JdbcSnapshotStore.scala
index 7736c9f..c15cc7c 100644
--- a/core/src/main/scala/org/apache/pekko/persistence/jdbc/snapshot/JdbcSnapshotStore.scala
+++ b/core/src/main/scala/org/apache/pekko/persistence/jdbc/snapshot/JdbcSnapshotStore.scala
@@ -53,11 +53,8 @@ class JdbcSnapshotStore(config: Config) extends SnapshotStore {
val fqcn = snapshotConfig.pluginConfig.dao
val profile: JdbcProfile = slickDb.profile
val args = Seq(
- (classOf[Database], db),
- (classOf[JdbcProfile], profile),
- (classOf[SnapshotConfig], snapshotConfig),
- (classOf[Serialization], SerializationExtension(system)),
- (classOf[ExecutionContext], ec),
+ (classOf[Database], db), (classOf[JdbcProfile], profile), (classOf[SnapshotConfig], snapshotConfig),
+ (classOf[Serialization], SerializationExtension(system)), (classOf[ExecutionContext], ec),
(classOf[Materializer], mat))
system.asInstanceOf[ExtendedActorSystem].dynamicAccess.createInstanceFor[SnapshotDao](fqcn, args) match {
case Success(dao) => dao
diff --git a/core/src/main/scala/org/apache/pekko/persistence/jdbc/state/SequenceNextValUpdater.scala b/core/src/main/scala/org/apache/pekko/persistence/jdbc/state/SequenceNextValUpdater.scala
index 52993c4..910dbf4 100644
--- a/core/src/main/scala/org/apache/pekko/persistence/jdbc/state/SequenceNextValUpdater.scala
+++ b/core/src/main/scala/org/apache/pekko/persistence/jdbc/state/SequenceNextValUpdater.scala
@@ -57,7 +57,8 @@ import slick.sql.SqlStreamingAction
import profile.api._
def getSequenceNextValueExpr() =
- sql"""SELECT nextval(pg_get_serial_sequence('#${durableStateTableCfg.tableName}', '#${durableStateTableCfg.columnNames.globalOffset}'))""".as[
+ sql"""SELECT nextval(pg_get_serial_sequence('#${durableStateTableCfg.tableName}', '#${durableStateTableCfg
+ .columnNames.globalOffset}'))""".as[
String]
}
@@ -84,6 +85,7 @@ import slick.sql.SqlStreamingAction
import profile.api._
def getSequenceNextValueExpr() =
- sql"""SELECT #${durableStateTableCfg.tableName}__#${durableStateTableCfg.columnNames.globalOffset}_SEQ.nextval FROM DUAL""".as[
+ sql"""SELECT #${durableStateTableCfg.tableName}__#${durableStateTableCfg.columnNames
+ .globalOffset}_SEQ.nextval FROM DUAL""".as[
String]
}
diff --git a/core/src/test/scala/org/apache/pekko/persistence/jdbc/query/QueryTestSpec.scala b/core/src/test/scala/org/apache/pekko/persistence/jdbc/query/QueryTestSpec.scala
index c299fbe..509edac 100644
--- a/core/src/test/scala/org/apache/pekko/persistence/jdbc/query/QueryTestSpec.scala
+++ b/core/src/test/scala/org/apache/pekko/persistence/jdbc/query/QueryTestSpec.scala
@@ -343,11 +343,8 @@ abstract class QueryTestSpec(config: String, configOverrides: Map[String, Config
def withDao(f: JournalDao => Unit)(implicit system: ActorSystem, ec: ExecutionContext, mat: Materializer): Unit = {
val fqcn: String = journalConfig.pluginConfig.dao
val args: immutable.Seq[(Class[_], AnyRef)] = immutable.Seq(
- (classOf[Database], db),
- (classOf[JdbcProfile], profile),
- (classOf[JournalConfig], journalConfig),
- (classOf[Serialization], SerializationExtension(system)),
- (classOf[ExecutionContext], ec),
+ (classOf[Database], db), (classOf[JdbcProfile], profile), (classOf[JournalConfig], journalConfig),
+ (classOf[Serialization], SerializationExtension(system)), (classOf[ExecutionContext], ec),
(classOf[Materializer], mat))
val journalDao: JournalDao =
system.asInstanceOf[ExtendedActorSystem].dynamicAccess.createInstanceFor[JournalDao](fqcn, args) match {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org
(pekko-persistence-jdbc) 03/03: Add 'Reformat with scalafmt 3.8.2' to .git-blame-ignore-revs
Posted by fa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-persistence-jdbc.git
commit 89869b7c630ac7f4d2d3847fe37ef8fdcef83128
Author: scala-steward-asf[bot] <14...@users.noreply.github.com>
AuthorDate: Sun Jun 16 00:15:57 2024 +0000
Add 'Reformat with scalafmt 3.8.2' to .git-blame-ignore-revs
---
.git-blame-ignore-revs | 3 +++
1 file changed, 3 insertions(+)
diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs
index aaa9ce2..39da5a7 100644
--- a/.git-blame-ignore-revs
+++ b/.git-blame-ignore-revs
@@ -3,3 +3,6 @@ c69b4062b3530798e43287cc75a74ade11955b53
# manual
a48ac56bd5da81c39c12e6aeb67d5fa14f8f3593
+
+# Scala Steward: Reformat with scalafmt 3.8.2
+b4b0df776a905013e7e5c2f24cf7340b97a41ec2
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org
(pekko-persistence-jdbc) 01/03: Update scalafmt-core to 3.8.2
Posted by fa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-persistence-jdbc.git
commit f4cdf3e6d1192c99c305578f4899b66838f7493b
Author: scala-steward-asf[bot] <14...@users.noreply.github.com>
AuthorDate: Sun Jun 16 00:15:50 2024 +0000
Update scalafmt-core to 3.8.2
---
.scalafmt.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.scalafmt.conf b/.scalafmt.conf
index d539f83..722e884 100644
--- a/.scalafmt.conf
+++ b/.scalafmt.conf
@@ -1,4 +1,4 @@
-version = 3.8.1
+version = 3.8.2
runner.dialect = scala213
project.git = true
style = defaultWithAlign
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org