Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor enhancements to the Microsoft.Data.Sqlite docs #20467

Merged
merged 1 commit into from
Sep 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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