Hey,
The root error is:
(stdlib 3.15.1) filename.erl:454: :filename.join({:error, :bad_name}, 'sqlite3_nif')
(exqlite 0.6.1) lib/exqlite/sqlite3_nif.ex:14: Exqlite.Sqlite3NIF.load_nifs/0
Which comes from the line of code where we load our NIF:
def load_nifs() do
path = :filename.join(:code.priv_dir(:exqlite), 'sqlite3_nif')
:erlang.load_nif(path, 0)
end
It looks like this is because the priv/
directory is not supproted in escript.
It looks like NIFs in general cannot work in escript. Bummer.
2 Likes