Skip to content

Commit

Permalink
Minor enhancements to the Microsoft.Data.Sqlite docs (#20467)
Browse files Browse the repository at this point in the history
  • Loading branch information
bricelam committed Sep 8, 2020
1 parent a0d86c7 commit 16b7360
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/standard/data/sqlite/async.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
title: Async limitations
ms.date: 12/13/2019
ms.date: 09/04/2020
description: Explains the limitations of the async APIs and some alternatives that you can use instead.
---
# Async limitations

SQLite doesn't support asynchronous I/O. Async ADO.NET methods will execute synchronously in Microsoft.Data.Sqlite. Avoid calling them.

Instead, use [write-ahead logging](https://www.sqlite.org/wal.html) to improve performance and concurrency.
Instead, use a [shared cache](connection-strings.md#cache) and [write-ahead logging](https://www.sqlite.org/wal.html) to improve performance and concurrency.

[!code-csharp[](../../../../samples/snippets/standard/data/sqlite/AsyncSample/Program.cs?name=snippet_WAL)]

Expand Down
3 changes: 2 additions & 1 deletion docs/standard/data/sqlite/custom-versions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Custom SQLite versions
ms.date: 05/14/2020
ms.date: 09/04/2020
description: Learn how to use a custom version of the native SQLite library.
---

Expand All @@ -17,6 +17,7 @@ description: Learn how to use a custom version of the native SQLite library.
| [SQLitePCLRaw.bundle_e_sqlite3](https://www.nuget.org/packages/SQLitePCLRaw.bundle_e_sqlite3) | Provides a consistent version of SQLite on all platforms. Includes the FTS4, FTS5, JSON1, and R*Tree extensions. This is the default. |
| [SQLitePCLRaw.bundle_e_sqlcipher](https://www.nuget.org/packages/SQLitePCLRaw.bundle_e_sqlcipher) | Provides an unofficial, open-source build of `SQLCipher`. |
| [SQLitePCLRaw.bundle_green](https://www.nuget.org/packages/SQLitePCLRaw.bundle_green) | Same as `bundle_e_sqlite3`, except on iOS where it uses the system SQLite library. |
| [SQLitePCLRaw.bundle_sqlite3](https://www.nuget.org/packages/SQLitePCLRaw.bundle_sqlite3) | Uses the system SQLite library. |
| [SQLitePCLRaw.bundle_winsqlite3](https://www.nuget.org/packages/SQLitePCLRaw.bundle_winsqlite3) | Uses `winsqlite3.dll`, the system SQLite library on Windows 10. |
| [SQLitePCLRaw.bundle_zetetic](https://www.nuget.org/packages/SQLitePCLRaw.bundle_zetetic) | Uses the official `SQLCipher` builds from Zetetic (not included). |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static async Task Main()
// Microsoft.Data.Sqlite.

#region snippet_WAL
var connection = new SqliteConnection("Data Source=AsyncSample.db");
var connection = new SqliteConnection("Data Source=AsyncSample.db;Cache=Shared");
connection.Open();

// Enable write-ahead logging
Expand Down

0 comments on commit 16b7360

Please sign in to comment.