Skip to content
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

Not null fields #91

Closed
jhass opened this issue Nov 12, 2017 · 2 comments
Closed

Not null fields #91

jhass opened this issue Nov 12, 2017 · 2 comments

Comments

@jhass
Copy link

jhass commented Nov 12, 2017

Having to handle nil on every field access is a PITA. Support marking fields as not null, or maybe even make that the default and support marking them as nullable. Make the primary key not null by default

@drujensen
Copy link
Member

yeah, crystal .not_nil! is very annoying. I wish they chose something like swift using just an ! or simpler syntax.

I have considered making the mapping more advanced and support nilable and other options that db's may support. It would be an options hash per field.

@drujensen
Copy link
Member

closing since this is a duplicate of #57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants