A simple NuGet Package wrapping SQLite sqlean extension libraries for easier usage within dotnet.
$ dotnet add package TeleTrain.sqleanThis package simply provides the sqlean extension libraries for easier usage within dotnet.
DatabaseConnection.Open();
DatabaseConnection.EnableExtensions(true);
// dotnet should include the binaries dependend on the OS.
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) {
DatabaseConnection.LoadExtension(@"./sqlean.dll");
} else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) {
DatabaseConnection.LoadExtension(@"./sqlean.dylib");
} else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) {
DatabaseConnection.LoadExtension(@"./sqlean.so");
} else {
// Handle unsupported OS!
}
Please refer to the sqlean's documentation.
Feel free to add issues, though most probably are related to sqlean or it's dependencies.
Copyright 2021-2024 Anton Zhiyanov, Contributors of sqlean and Third-party Authors.
The software is available under the MIT License.
Copyright 2024 Tele'Train Software GmbH (Moers, Germany)