-
-
Save rozap/ad138c03dc391076dec8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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