aboutsummaryrefslogtreecommitdiffstats
path: root/src/mysqlerl_app.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mysqlerl_app.erl')
-rw-r--r--src/mysqlerl_app.erl14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mysqlerl_app.erl b/src/mysqlerl_app.erl
new file mode 100644
index 0000000..cdb8ade
--- /dev/null
+++ b/src/mysqlerl_app.erl
@@ -0,0 +1,14 @@
+-module(mysqlerl_app).
+-author('bjc@kublai.com').
+
+-behavior(application).
+
+%% Behavior callbacks.
+-export([start/2, stop/1]).
+
+start(normal, []) ->
+ register(?MODULE, self()),
+ mysqlerl_sup:start_link().
+
+stop([]) ->
+ ok.