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

add exists static method to models #45

Govinda-Fichtner opened this Issue Jul 28, 2016 · 1 comment


None yet
1 participant

Govinda-Fichtner commented Jul 28, 2016

I would find it useful to have a static method for models like in Active Record. It would use a primary key value as input and return True or False if the entry is there or not.

For a User model it would be called like this:


@stevearc stevearc closed this in 0592c0d Aug 3, 2016


This comment has been minimized.

Govinda-Fichtner commented Aug 3, 2016

@stevearc Thank you for adding this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment