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

Custom sql function with rust implementation #1877

Closed
giovanniberti opened this Issue Oct 6, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@giovanniberti

giovanniberti commented Oct 6, 2018

Is it possible to have a rust function/operator calling in SQL/Diesel DSL?
I need it to store and retrieve passwords from a db, and I'm using the scrypt crate, which has a scrypt_check function, so I can't use the simple .eq() function from diesel's dsl.

@sgrif

This comment has been minimized.

Member

sgrif commented Oct 7, 2018

This is entirely dependent on how your database works. For SQLite, yes. For other DBs you would need to write an extension for your database server which is outside of the scope of Diesel.

@sgrif sgrif closed this Oct 7, 2018

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