We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I try to use Crecto from Amber with the basic default and it does not seem to work for foreign keys
I've reduced it to this:
require "pg" require "crecto" class User < Crecto::Model schema "users" do field :email, String field :hashed_password, String end end class Post < Crecto::Model schema "posts" do field :name, String belongs_to :user, User end end module Repo extend Crecto::Repo config do |c| c.adapter = Crecto::Adapters::Postgres c.uri = "postgres://postgres:@localhost:5432/abcdef_development" end end Repo.all Post
which produce this error:
no overload matches 'Proc(Crecto::Model, (Int16 | Int32 | Int64 | Int8 | String | Nil))#call' with type (Array(Bool | Float32 | Float64 | Int16 | Int32 | Int64 | Int8 | JSON::Any | String | Time | Nil) | Array(Int16 | Int32 | Int64 |Int8 | String | Nil) | Array(Int32) | Array(Int64) | Array(String) | Bool | Float32 | Float64 | Int16 | Int32 | Int64 | Int8 | JSON::Any | String | Time | Nil) Overloads are: - Proc(T, R)#call(*args : *T)
Full traceback here: https://gist.github.com/alex-min/f29091438c15d76405d636355cf2b4e9 (because it's very long).
Is it because of #231 ? Because I'm on 0.27.2. I've tried to fix it in the crecto code but I can't make it work.
The text was updated successfully, but these errors were encountered:
Yes thats the same error I see when trying to run the specs on crystal 0.27.2
Sorry, something went wrong.
Crecto is working with the latest crystal
No branches or pull requests
Hello,
I try to use Crecto from Amber with the basic default and it does not seem to work for foreign keys
I've reduced it to this:
which produce this error:
Full traceback here: https://gist.github.com/alex-min/f29091438c15d76405d636355cf2b4e9 (because it's very long).
Is it because of #231 ? Because I'm on 0.27.2. I've tried to fix it in the crecto code but I can't make it work.
The text was updated successfully, but these errors were encountered: