ericsink / SQLitePCL.raw

A Portable Class Library (PCL) for low-level (raw) access to SQLite
Apache License 2.0
512 stars 106 forks source link

Investigate possibility of `sqlite3_load_extension` #457

Closed ericsink closed 1 year ago

ericsink commented 2 years ago

@ericsink Would it be possible to add sqlite3_load_extension to SQLitePCLRaw?

Originally posted by @bricelam in https://github.com/dotnet/efcore/issues/26220#issuecomment-947093883

ericsink commented 2 years ago

Maaaybe.

I'll take a fresh look at this. IIRC, I omitted the function (years ago) because it caused problems with native SQLite libs where it had been compiled out and where AOT was in play. Specifically, I think it was iOS and bundle_green that was complaining.

But I haven't revisited the matter in a long time, so it's worth checking to see what could be done.

ericsink commented 1 year ago

I'm guessing this can be closed, as the following change by @bricelam makes use of this feature, apparently successfully:

dotnet/efcore#28903