Skip to content
This repository has been archived by the owner on Dec 20, 2018. It is now read-only.

natemcmaster/libsqlite3-package

Repository files navigation

libsqlite3-package [Archived]

This project has been archived because I no longer maintain or support this package. Please reach out to me https://github.com/natemcmaster/blog if you have questions or concerns.

Travis build status AppVeyor build status

master branch dev branch

Automates creating a NuGet package of SQLite3 native library for macOS, Linux, Universal Windows apps, and Windows.

Releases are published to https://www.nuget.org/packages/SQLite

Nightly builds are available on MyGet: https://www.myget.org/gallery/libsqlite3

Usage

.NET Framework and .NET Core apps can install this package and use SQLite via the C API and P/Invoke. The installation of the package ensures that "sqlite3" is always available as a native component. See https://www.sqlite.org/c3ref/intro.html for full reference on the SQLite C API.

Example:

public static class NativeMethod
{
     [DllImport("sqlite3", CallingConvention = CallingConvention.Cdecl)]
     public static extern IntPtr sqlite3_libversion();
}
string version = Marshal.PtrToStringAnsi(NativeMethod.sqlite3_libversion());

Used by: