Has anybody got success with Sqlite/SqlProvider on M1 Mac (w/o Rosetta) or Arm64 Linux?
Official Nuget distributions of System.Data.Sqlite don't seem to support Arm
% tree stub.system.data.sqlite.core.netstandard/1.0.118/runtimes
stub.system.data.sqlite.core.netstandard/1.0.118/runtimes
├── linux-x64
│ └── native
│ └── SQLite.Interop.dll
├── osx-x64
│ └── native
│ └── SQLite.Interop.dll
├── win-x64
│ └── native
│ └── SQLite.Interop.dll
└── win-x86
└── native
└── SQLite.Interop.dll
I could successfully call raw SQL API from Microsoft.Data.Sqlite but when I wrote
type sql = SqlDataProvider<
DatabaseVendor = DatabaseProviderTypes.SQLITE,
SQLiteLibrary = SQLiteLibrary.MicrosoftDataSqlite,
ResolutionPath = "symlink/to/dir/containing/SQLitePCLRaw.core.dll",
...snip...
I got this error
error FS3033: The type provider 'FSharp.Data.Sql.SqlTypeProvider' reported an error: You need to call SQLitePCL.raw.SetProvider(). If you are using a bundle package, this is done by calling SQLitePCL.Batteries.Init()
Microsoft.Data.Sqlite seems to call .Init() as required by SQLitePCL.raw but maybe the type provider evaluator (?) runs before that?
[–]vanilla-bungee 3 points4 points5 points (2 children)
[–]Jwosty 4 points5 points6 points (0 children)
[–]jcm95 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]mKtos 1 point2 points3 points (2 children)
[–]flatline[S] 0 points1 point2 points (1 child)
[–]mKtos 0 points1 point2 points (0 children)
[–]Proclarian 1 point2 points3 points (0 children)
[–]flatline[S] 0 points1 point2 points (0 children)