Skip to content

Latest commit

 

History

History

sqlite

XenoAtom.Interop.sqlite Build Status NuGet

This package provides a low-level and modern .NET P/Invoke wrapper around the SQLite database engine.

♻️ XenoAtom.Interop

This package is part of the XenoAtom.Interop project.

SQLite is a small and fast SQL database engine. For more information, see sqlite website.

💻 Usage

After installing the package, you can access the library through the static class XenoAtom.Interop.sqlite.

For more information, see the official documentation at https://www.sqlite.org/docs.html.

Example of using this library in C#:

using static XenoAtom.Interop.sqlite;

// Open a connection to a database
var ret = sqlite3_open("path/to/database", out var db);
if (ret != SQLITE_OK)
{
    var errmsg = sqlite3_errmsg(db);
    // ...
}

// Do something with the database
// ...

📦 Compatible Native Binaries

This library does not provide C native binaries but only P/Invoke .NET bindings to sqlite 3.45.3-r1.

If the native library is already installed on your system, check the version installed. If you are using this library on Alpine Linux, see the compatible version in the Supported API section below. Other OS might require a different setup.

For convenience, you can install an existing NuGet package (outside of XenoAtom.Interop project) that is providing native binaries. The following packages were tested and are compatible with XenoAtom.Interop.sqlite:

NuGet Package with Native Binaries Version
SQLitePCLRaw.lib.e_sqlite3 2.1.8

📚 Supported API

This package is based on the following header version:

  • sqlite C include headers: sqlite-dev
  • Version: 3.45.3-r1
  • Distribution: AlpineLinux v3.20

The following API were automatically generated from the C/C++ code:

🪪 License

This software is released under the BSD-2-Clause license.

🤗 Author

Alexandre Mutel aka xoofx.