Skip to content

Instantly share code, notes, and snippets.

@jschoch
Created July 11, 2013 17:21
Show Gist options
  • Save jschoch/5977385 to your computer and use it in GitHub Desktop.
Save jschoch/5977385 to your computer and use it in GitHub Desktop.
use Amnesia
require Exquisite
defdatabase IndexTest do
deftable Unf
end
defmodule DBA do
def install do
Amnesia.Schema.create
Amnesia.start
use IndexTest
IndexTest.create(disk: [node])
IndexTest.wait
end
def uninstall do
Amnesia.start
IndexTest.destroy
Amnesia.stop
Amnesia.Schema.destroy
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment