Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- defmodule Example do
- @moduledoc """
- Documentation for Example.
- """
- @doc """
- Hello world.
- ## Examples
- iex> Example.hello()
- :world
- """
- def hello do
- require Logger
- {:ok, pid} = Mysqlex.Connection.start_link(username: "", database: "", password: "", hostname: "127.0.0.1")
- {:ok, items} = Mysqlex.Connection.query(pid, "SELECT * FROM items LIMIT 1")
- Logger.info "Items=#{inspect items}"
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement