The erlang files

This commit is contained in:
Maas-Maarten Zeeman
2011-10-13 21:08:23 +02:00
parent 4780a4eed3
commit e7cab83784
2 changed files with 29 additions and 0 deletions

12
src/esqlite.app.src Normal file
View 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
View 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.