Skip to content

Commit

Permalink
Add isolates section to README (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitusortner authored Dec 26, 2020
1 parent 1db7738 commit 4a8456b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Refer to [GitHub Discussions](https://github.com/vitusortner/floor/discussions)
1. [In-Memory Database](#in-memory-database)
1. [Initialization Callback](#initialization-callback)
1. [Platform Support](#platform-support)
1. [Isolates](#isolates)
1. [Testing](#testing)
1. [Examples](#examples)
1. [Naming](#naming)
Expand Down Expand Up @@ -712,6 +713,11 @@ The SQLite database access on iOS and Android is provided by [sqflite](https://g

**There currently is no support for Flutter for web.**

## Isolates
As floor is based on sqflite, Android and iOS apps access the SQLite database on a native background thread.
On Linux, macOS, and Windows, a separate isolate is used.
You can do some further reading on sqflite's background work mechanisms [here](https://github.com/tekartik/sqflite/blob/master/sqflite/doc/usage_recommendations.md).

## Testing
Simply instantiate an in-memory database and run the database tests on your local development machine as shown in the following snippet.
For more test references, check out the [project's tests](https://github.com/vitusortner/floor/tree/develop/floor/test/integration).
Expand Down
6 changes: 6 additions & 0 deletions floor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Refer to [GitHub Discussions](https://github.com/vitusortner/floor/discussions)
1. [In-Memory Database](#in-memory-database)
1. [Initialization Callback](#initialization-callback)
1. [Platform Support](#platform-support)
1. [Isolates](#isolates)
1. [Testing](#testing)
1. [Examples](#examples)
1. [Naming](#naming)
Expand Down Expand Up @@ -712,6 +713,11 @@ The SQLite database access on iOS and Android is provided by [sqflite](https://g

**There currently is no support for Flutter for web.**

## Isolates
As floor is based on sqflite, Android and iOS apps access the SQLite database on a native background thread.
On Linux, macOS, and Windows, a separate isolate is used.
You can do some further reading on sqflite's background work mechanisms [here](https://github.com/tekartik/sqflite/blob/master/sqflite/doc/usage_recommendations.md).

## Testing
Simply instantiate an in-memory database and run the database tests on your local development machine as shown in the following snippet.
For more test references, check out the [project's tests](https://github.com/vitusortner/floor/tree/develop/floor/test/integration).
Expand Down

0 comments on commit 4a8456b

Please sign in to comment.