Skip to content

Instantly share code, notes, and snippets.

@dideler
Last active April 28, 2018 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dideler/617637ed2158f73ed5adddea9481199c to your computer and use it in GitHub Desktop.
Save dideler/617637ed2158f73ed5adddea9481199c to your computer and use it in GitHub Desktop.
Useful Elixir snippets
iex> Ecto.Adapters.SQL.query!(MyApp.Repo, "select 1")
%Postgrex.Result{
columns: ["?column?"],
command: :select,
connection_id: 7250,
num_rows: 1,
rows: [[1]]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment