Skip to content

Commit

Permalink
Update M.D.Sqlite provider docs (#43685)
Browse files Browse the repository at this point in the history
  • Loading branch information
cincuranet authored Nov 21, 2024
1 parent 4b1213f commit ac7ecbd
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/navigate/data-access/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ landingContent:
- linkListType: reference
links:
- text: API reference
url: ../../../api/index.md?view=msdata-sqlite-3.1.0&preserve-view=false
url: /dotnet/api/microsoft.data.sqlite
- text: SQL syntax
url: https://www.sqlite.org/lang.html

Expand Down
10 changes: 5 additions & 5 deletions docs/navigate/data-access/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ items:
- name: Bulk insert
href: ../../standard/data/sqlite/bulk-insert.md
- name: Entity Framework Core
href: /ef/core/providers/sqlite/limitations/?toc=/dotnet/navigate/data-access/toc.json&bc=/dotnet/breadcrumb/toc.json
href: /ef/core/providers/sqlite/limitations
- name: Dapper
href: ../../standard/data/sqlite/dapper-limitations.md
- name: System.Data.SQLite
Expand All @@ -717,9 +717,9 @@ items:
href: ../../fundamentals/runtime-libraries/system-data-dataset.md
- name: DataTable class
href: ../../fundamentals/runtime-libraries/system-data-datatable.md
- name: Entity Framework
href: /ef/core/?toc=/dotnet/navigate/data-access/toc.json&bc=/dotnet/breadcrumb/toc.json
- name: Entity Framework Core
href: /ef/core/
- name: Azure Storage
href: /dotnet/api/overview/azure/storage/?toc=/dotnet/navigate/data-access/toc.json&bc=/dotnet/breadcrumb/toc.json
href: /dotnet/api/overview/azure/storage
- name: Azure Cosmos DB .NET SDK
href: /azure/cosmos-db/nosql/sdk-dotnet-v3/?toc=/dotnet/navigate/data-access/toc.json&bc=/dotnet/breadcrumb/toc.json
href: /azure/cosmos-db/nosql/sdk-dotnet-v3
2 changes: 1 addition & 1 deletion docs/standard/data/sqlite/extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: Learn how to load SQLite extensions.

SQLite supports loading extensions at run time. Extensions include things like additional SQL functions, collations, virtual tables, and more.

.NET Core includes additional logic for locating native libraries in additional places like referenced NuGet packages. Unfortunately, SQLite can't leverage this logic; it calls the platform API directly to load libraries. Because of this, you may need to modify the PATH, LD_LIBRARY_PATH, or DYLD_LIBRARY_PATH environment variables before loading SQLite extensions. There's [a sample](https://github.com/dotnet/docs/blob/main/samples/snippets/standard/data/sqlite/ExtensionsSample/Program.cs) on GitHub that demonstrates finding binaries for the current runtime inside a referenced NuGet package.
.NET includes additional logic for locating native libraries in additional places like referenced NuGet packages. Unfortunately, SQLite can't leverage this logic; it calls the platform API directly to load libraries. Because of this, you may need to modify the `PATH`, `LD_LIBRARY_PATH`, or `DYLD_LIBRARY_PATH` environment variables before loading SQLite extensions. There's [a sample](https://github.com/dotnet/docs/blob/main/samples/snippets/standard/data/sqlite/ExtensionsSample/Program.cs) on GitHub that demonstrates finding binaries for the current runtime inside a referenced NuGet package.

To load an extension, call the <xref:Microsoft.Data.Sqlite.SqliteConnection.LoadExtension%2A> method. Microsoft.Data.Sqlite will ensure that the extension remains loaded even if the connection is closed and reopened.

Expand Down
2 changes: 1 addition & 1 deletion docs/standard/data/sqlite/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ This library implements the common ADO.NET abstractions for connections, command
## See also

* [Connection strings](connection-strings.md)
* [API Reference](../../../../api/index.md?view=msdata-sqlite-3.0&preserve-view=true)
* [API Reference](/dotnet/api/microsoft.data.sqlite)
* [SQL Syntax](https://www.sqlite.org/lang.html)
2 changes: 1 addition & 1 deletion docs/standard/data/sqlite/interop.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: Learn how to interoperate with other SQLite libraries.
---
# Interoperability

Microsoft.Data.Sqlite uses SQLitePCLRaw to interact with the native SQLite library. SQLitePCLRaw provides a thin .NET API over the native SQLite API. SqliteConnection and SqliteDataReader provide access to the underlying SQLitePCLRaw objects letting you call these APIs directly.
`Microsoft.Data.Sqlite` uses `SQLitePCLRaw` to interact with the native SQLite library. `SQLitePCLRaw` provides a thin .NET API over the native SQLite API. `SqliteConnection` and `SqliteDataReader` provide access to the underlying SQLitePCLRaw objects letting you call these APIs directly.

The following example shows how to call `sqlite3_trace` to write executed SQL statements to the console:

Expand Down

0 comments on commit ac7ecbd

Please sign in to comment.