Skip to content
This repository was archived by the owner on Nov 1, 2018. It is now read-only.

experimental: switch to SQLitePCL.raw #292

Closed
wants to merge 1 commit into from
Closed
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
21 changes: 0 additions & 21 deletions src/Microsoft.Data.Sqlite/Internal/SqliteEngine.cs

This file was deleted.

6 changes: 5 additions & 1 deletion src/Microsoft.Data.Sqlite/Interop/MarshalEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

using static Microsoft.Data.Sqlite.Interop.Constants;

using NativeMethods = SQLitePCL.raw;
using Sqlite3Handle = SQLitePCL.sqlite3;
using Sqlite3StmtHandle = SQLitePCL.sqlite3_stmt;

namespace Microsoft.Data.Sqlite.Interop
{
internal static class MarshalEx
Expand Down Expand Up @@ -62,7 +66,7 @@ public static void ThrowExceptionForRC(int rc, Sqlite3Handle db)
return;
}

var message = db == null || db.IsInvalid
var message = db == null || db.IsInvalid()
? VersionedMethods.GetErrorString(rc)
: NativeMethods.sqlite3_errmsg(db);

Expand Down
281 changes: 0 additions & 281 deletions src/Microsoft.Data.Sqlite/Interop/NativeMethods.cs

This file was deleted.

Loading