Browse Source

Add tcp_options to start_link/1 spec

#126
Jan Uhlig 6 years ago
parent
commit
c65651bfe7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/mysql.erl

+ 2 - 1
src/mysql.erl

@@ -135,7 +135,8 @@
                    {queries, [iodata()]} |
                    {queries, [iodata()]} |
                    {query_timeout, timeout()} |
                    {query_timeout, timeout()} |
                    {found_rows, boolean()} |
                    {found_rows, boolean()} |
-                   {query_cache_time, non_neg_integer()},
+                   {query_cache_time, non_neg_integer()} |
+                   {tcp_options, [gen_tcp:connect_option()]},
          ServerName :: {local, Name :: atom()} |
          ServerName :: {local, Name :: atom()} |
                        {global, GlobalName :: term()} |
                        {global, GlobalName :: term()} |
                        {via, Module :: atom(), ViaName :: term()},
                        {via, Module :: atom(), ViaName :: term()},