-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Created schema not recognised #27
Comments
Did you create the database after creating the schema? What's your creation code? |
use Amnesia
defdatabase UserStore do
@ver "0"
deftable User,
[:pid,:username,:bytes,:datetime],
type: :set,
index: [:username] do
@type t :: %User{pid: pid,
username: String.t,
bytes: non_neg_integer,
datetime: {{non_neg_integer, non_neg_integer, non_neg_integer}, {non_neg_integer, non_neg_integer, non_neg_integer}}}
end
end
defmodule Mix.Tasks.Install do
use Mix.Task
use UserStore
def run(_) do
Amnesia.Schema.create
Amnesia.start
XSignal.UserStore.create(disk: [node])
XSignal.UserStore.wait
Amnesia.stop
end
end |
I then run tun "mix install" followed by "iex -S mix" to get my app running |
Hi Meh, Do you have a working example project that I can look over to see what the cause might be? Examples (other than in the readme.md" are few and far between. Thanks |
Sadly no, all examples I have are private stuff I can't share. Anyway, if what you have there is the code, please use |
Hi,
So, I use the install task to create a schema, but when I try to access the database, I get
My Schema is created with:
On install, the necessary folders do get created.
The text was updated successfully, but these errors were encountered: