-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e28e821
commit a86caba
Showing
11 changed files
with
390 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
migration-tests/src/test/resources/application-sqlserver-example.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
akka.persistence.r2dbc.migration { | ||
source { | ||
query-plugin-id = "jdbc-read-journal" | ||
snapshot-plugin-id = "jdbc-snapshot-store" | ||
} | ||
} | ||
|
||
akka.persistence.r2dbc.connection-factory = ${akka.persistence.r2dbc.sqlserver} | ||
akka.persistence.r2dbc.connection-factory { | ||
host = "localhost" | ||
port = 1433 | ||
database = "your_db" | ||
user = "your_user" | ||
password = "your_password" | ||
} | ||
|
||
akka-persistence-jdbc { | ||
shared-databases { | ||
default { | ||
profile = "slick.jdbc.SQLServerProfile$" | ||
db { | ||
url = "jdbc:sqlserver://"127.0.0.1":1433;databaseName=master;integratedSecurity=false;" | ||
user = "user" | ||
password = "password" | ||
driver = "com.microsoft.sqlserver.jdbc.SQLServerDriver" | ||
numThreads = 5 | ||
maxConnections = 5 | ||
minConnections = 1 | ||
} | ||
} | ||
} | ||
} | ||
|
||
jdbc-journal { | ||
use-shared-db = "default" | ||
} | ||
jdbc-snapshot-store { | ||
use-shared-db = "default" | ||
} | ||
jdbc-read-journal { | ||
use-shared-db = "default" | ||
} | ||
|
||
# application specific serializers for events and snapshots | ||
# must also be configured and included in classpath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
akka.persistence.r2dbc.connection-factory = ${akka.persistence.r2dbc.sqlserver} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,4 @@ | |
<appender-ref ref="STDOUT"/> | ||
</root> | ||
|
||
</configuration> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
|
||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder> | ||
<pattern>[%date{ISO8601}] [%level] [%logger] [%X{akkaAddress}] [%marker] [%thread] - %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
|
||
<appender name="CapturingAppender" class="akka.actor.testkit.typed.internal.CapturingAppender"/> | ||
<!-- <logger name="akka.persistence.r2dbc.migration.MigrationTool" level="DEBUG" />--> | ||
|
||
<logger name="akka.persistence.r2dbc" level="DEBUG" /> | ||
<!-- <logger name="io.r2dbc.postgresql.QUERY" level="DEBUG" />--> | ||
<!-- <logger name="io.r2dbc.mssql.QUERY" level="DEBUG" />--> | ||
<!-- <logger name="io.r2dbc.pool" level="DEBUG" />--> | ||
|
||
<root level="INFO"> | ||
<appender-ref ref="CapturingAppender"/> | ||
<!-- <appender-ref ref="STDOUT"/>--> | ||
</root> | ||
|
||
</configuration> |
Oops, something went wrong.