sqlite3:create_link/1,2 now opens link with correct name
This commit is contained in:
@@ -54,7 +54,7 @@
|
|||||||
-spec(start_link/1::(atom()) -> result()).
|
-spec(start_link/1::(atom()) -> result()).
|
||||||
|
|
||||||
start_link(Db) ->
|
start_link(Db) ->
|
||||||
?MODULE:open(?MODULE, [{db, "./" ++ atom_to_list(Db) ++ ".db"}]).
|
?MODULE:open(Db, [{db, "./" ++ atom_to_list(Db) ++ ".db"}]).
|
||||||
|
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
%% @spec start_link(Db, Options) -> {ok,Pid} | ignore | {error,Error}
|
%% @spec start_link(Db, Options) -> {ok,Pid} | ignore | {error,Error}
|
||||||
@@ -77,7 +77,7 @@ start_link(Db, Options) ->
|
|||||||
undefined -> [{db, "./" ++ atom_to_list(Db) ++ ".db"} | Options];
|
undefined -> [{db, "./" ++ atom_to_list(Db) ++ ".db"} | Options];
|
||||||
_ -> Options
|
_ -> Options
|
||||||
end,
|
end,
|
||||||
?MODULE:open(?MODULE, Opts).
|
?MODULE:open(Db, Opts).
|
||||||
|
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
%% @spec open(Db :: atom()) -> {ok, Pid::pid()} | ignore | {error, Error}
|
%% @spec open(Db :: atom()) -> {ok, Pid::pid()} | ignore | {error, Error}
|
||||||
|
|||||||
Reference in New Issue
Block a user