Skip to content

Commit

Permalink
fixe sqlite.conf and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
marcpiechura committed Dec 2, 2015
1 parent accb60a commit c7e925b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
6 changes: 3 additions & 3 deletions src/contrib/persistence/Akka.Persistence.Sqlite/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Akka.Persistence.Sqlite

Akka Persistence journal and snapshot store backed by SQL Server database.
Akka Persistence journal and snapshot store backed by SQLite database.

**WARNING: Akka.Persistence.Sqlite plugin is still in beta and it's mechanics described bellow may be still subject to change**.

Expand All @@ -13,7 +13,7 @@ akka.persistence.journal.plugin = "akka.persistence.journal.sqlite"
akka.persistence.journal.sqlite.connection-string = "<database connection string>"
```

Similar configuration may be used to setup a SQL Server snapshot store:
Similar configuration may be used to setup a SQLite snapshot store:

```
akka.persistence.snapshot-store.plugin = "akka.persistence.snapshot-store.sqlite"
Expand All @@ -28,7 +28,7 @@ Both journal and snapshot store share the same configuration keys (however they

- `class` (string with fully qualified type name) - determines class to be used as a persistent journal. Default: *Akka.Persistence.Sqlite.Journal.SqliteJournal, Akka.Persistence.Sqlite* (for journal) and *Akka.Persistence.Sqlite.Snapshot.SqliteSnapshotStore, Akka.Persistence.Sqlite* (for snapshot store).
- `plugin-dispatcher` (string with configuration path) - describes a message dispatcher for persistent journal. Default: *akka.actor.default-dispatcher*
- `connection-string` - connection string used to access SQL Server database. Default: *none*.
- `connection-string` - connection string used to access SQLite database. Default: *none*.
- `connection-timeout` - timespan determining default connection timeouts on database-related operations. Default: *30s*
- `table-name` - name of the table used by either journal or snapshot store. Default: *event_journal* (for journal) or *snapshot_store* (for snapshot store)
- `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*
Expand Down
26 changes: 15 additions & 11 deletions src/contrib/persistence/Akka.Persistence.Sqlite/sqlite.conf
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
akka.persistence{

journal {

sqlite {

# qualified type name of the SQL Server persistence journal actor
class = "Akka.Persistence.SqlServer.Journal.SqlServerJournal, Akka.Persistence.SqlServer"
# qualified type name of the SQLite persistence journal actor
class = "Akka.Persistence.Sqlite.Journal.SqliteJournal, Akka.Persistence.Sqlite"

# dispatcher used to drive journal actor
plugin-dispatcher = "akka.actor.default-dispatcher"
Expand All @@ -15,49 +16,52 @@
# connection string name for .config file used when no connection string has been provided
connection-string-name = ""

# default SQL commands timeout
# default SQLite commands timeout
connection-timeout = 30s

# SQL server schema name to table corresponding with persistent journal
# SQLite schema name to table corresponding with persistent journal
schema-name = dbo

# SQL server table corresponding with persistent journal
# SQLite table corresponding with persistent journal
table-name = event_journal

# should corresponding journal table be initialized automatically
auto-initialize = off

# timestamp provider used for generation of journal entries timestamps
timestamp-provider = "Akka.Persistence.Sql.Common.Journal.DefaultTimestampProvider, Akka.Persistence.Sql.Common"

}
}

snapshot-store {

sqlite {

# qualified type name of the SQL Server persistence journal actor
class = "Akka.Persistence.SqlServer.Snapshot.SqlServerSnapshotStore, Akka.Persistence.SqlServer"
# qualified type name of the SQLite persistence journal actor
class = "Akka.Persistence.Sqlite.Snapshot.SqliteSnapshotStore, Akka.Persistence.Sqlite"

# dispatcher used to drive journal actor
plugin-dispatcher = ""akka.actor.default-dispatcher""
plugin-dispatcher = "akka.actor.default-dispatcher"

# connection string used for database access
connection-string = ""

# connection string name for .config file used when no connection string has been provided
connection-string-name = ""

# default SQL commands timeout
# default SQLite commands timeout
connection-timeout = 30s

# SQL server schema name to table corresponding with persistent journal
# SQLite schema name to table corresponding with persistent journal
schema-name = dbo

# SQL server table corresponding with persistent journal
# SQLite table corresponding with persistent journal
table-name = snapshot_store

# should corresponding journal table be initialized automatically
auto-initialize = off

}
}
}

0 comments on commit c7e925b

Please sign in to comment.