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
Hi! The example in the documentation (https://iskyd.github.io/Wasabi.jl/stable/) doesn't compile.
The error shown is
ERROR: MethodError: no method matching User(::String) Closest candidates are: User(::Any, ::Any) User(::Union{Nothing, AutoIncrement}, ::String)
referring to the row user = User("John Doe") because the constructor misses the argument for the autoincrementing id field
user = User("John Doe")
The text was updated successfully, but these errors were encountered:
Hi @TnTo , thanks for pointing this out! I think that we have two options available here:
mutable struct User <: Wasabi.Model id::Union{Nothing, AutoIncrement} name::String User(name::String) = new(nothing, name) end
What do you think?
Sorry, something went wrong.
Merge pull request #2 from cpfiffer/patch-2
d5dc195
Update README.md
No branches or pull requests
Hi!
The example in the documentation (https://iskyd.github.io/Wasabi.jl/stable/) doesn't compile.
The error shown is
referring to the row
user = User("John Doe")
because the constructor misses the argument for the autoincrementing id fieldThe text was updated successfully, but these errors were encountered: