 
   @default_opts [
     host: "localhost",
-    port: 2424,
     ssl: false,
   ]
+
+  @default_tcp_port 2424
+  @default_ssl_port 2434
 
   @default_fetch_plan ""
 

    * `:host` - (string or charlist) the host where the OrientDB server is
      running. Defaults to `"localhost"`.
    * `:port` - (integer) the port where the OrientDB server is running.
      Defaults to `2424`.
    * `:socket_opts` - (list) options to use when opening the TCP/SSL socket.
    * `:ssl` - (boolean) whether to use SSL to connect to the OrientDB
      server. Defaults to `false`.


  defp record_type(%Document{}), do: {:raw, "d"}
  defp record_type(%BinaryRecord{}), do: {:raw, "b"}

  defp put_default_port(opts) do
    port = if opts[:ssl], do: @default_ssl_port, else: @default_tcp_port
    Keyword.put(opts, :port, port)
  end
end
