Skip to content

Commit

Permalink
GitBook: [develop] 3 pages modified
Browse files Browse the repository at this point in the history
  • Loading branch information
agrosner authored and gitbook-bot committed Feb 17, 2021
1 parent 0f7ba59 commit 7d461d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file modified usage2/5.0-migration-guide.md
Binary file not shown.
6 changes: 3 additions & 3 deletions usage2/advanced-usage/multiplemodules.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ From previous sample code, we recommend initializing the specific module inside

```kotlin
fun initialize(context: Context) {
FlowManager.init(context) {
databaseHolder<SomeUniqueModuleNameGeneratedDatabaseHolder>()
}
FlowManager.init(FlowConfig.builder(context)
.addDatabaseHolder(SomeUniqueModuleNameGeneratedDatabaseHolder::class)
.build())
}
```

2 changes: 1 addition & 1 deletion usage2/usage/databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ To dynamically change the database name, call:
database<AppDatabase>()
.reopen(DatabaseConfig.builder(AppDatabase::class)
.databaseName("AppDatabase-2")
.build())]
.build())
```

This will close the open DB, reopen the DB, and replace previous `DatabaseConfig` with this new one. Ensure that you persist the changes to the `DatabaseConfig` somewhere as next time app is launched and DBFlow is initialized, the new config would get overwritten.
Expand Down

0 comments on commit 7d461d6

Please sign in to comment.