The erlang files
This commit is contained in:
12
src/esqlite.app.src
Normal file
12
src/esqlite.app.src
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{application, esqlite,
|
||||||
|
[
|
||||||
|
{description, "sqlite nif interface"},
|
||||||
|
{vsn, "1"},
|
||||||
|
{modules, [esqlite]},
|
||||||
|
{registered, []},
|
||||||
|
{applications, [
|
||||||
|
kernel,
|
||||||
|
stdlib
|
||||||
|
]},
|
||||||
|
{env, []}
|
||||||
|
]}.
|
||||||
17
src/esqlite.erl
Normal file
17
src/esqlite.erl
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
%%
|
||||||
|
%%
|
||||||
|
%%
|
||||||
|
|
||||||
|
-module(esqlite).
|
||||||
|
-author("Maas-Maarten Zeeman <mmzeeman@xs4all.nl>").
|
||||||
|
|
||||||
|
-on_load(init/0).
|
||||||
|
|
||||||
|
init() ->
|
||||||
|
ok = erlang:load_nif(code:priv_dir(esqlite) ++ "/esqlite_nif", 0).
|
||||||
|
|
||||||
|
%% @doc Open a new database connection
|
||||||
|
%%
|
||||||
|
open(Name) ->
|
||||||
|
ok.
|
||||||
|
|
||||||
Reference in New Issue
Block a user