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

Adopt PostgreSQL conventions for cast functions #7

Open
einhverfr opened this issue Nov 14, 2017 · 0 comments
Open

Adopt PostgreSQL conventions for cast functions #7

einhverfr opened this issue Nov 14, 2017 · 0 comments

Comments

@einhverfr
Copy link

By convention the casting function's name in SQL terms is the same as the data type returned. So we would have:

  • md5hash(text)
  • md5hash(bytes)

both returning md5hash types. For backwards compatibility would add these in addition to existing functions.

The reason is it makes it easier to remember the names of the functions when calling the functions in this way.

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

1 participant