Skip to content

Instantly share code, notes, and snippets.

@rozap
Forked from Linicks/gist:29267d895efffdbc644c
Last active August 29, 2015 14:21
Show Gist options
  • Save rozap/ad138c03dc391076dec8 to your computer and use it in GitHub Desktop.
Save rozap/ad138c03dc391076dec8 to your computer and use it in GitHub Desktop.
defp table_action("create"), do: table_create("authors")
defp table_action("destroy"), do: table_drop("authors")
def authors(cd) do
#Connect to the database.
conn = RethinkDB.connect([host: "10.0.0.30", port: 28015])
q = table_action(cd) |> run(conn)
IO.puts "#{inspect q.data}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment