Created
March 22, 2017 18:57
-
-
Save aleandros/05bb96e6ab16c403d2796de7f859b5e8 to your computer and use it in GitHub Desktop.
Ecto model access field with uppercase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[bank|_] = Repo.all(Bank) | |
bank.'BankId' # That's it. That's all it takes and it works | |
# Same for database queries | |
query = from b in Bank, | |
where: b.'BankName' == "Bank Inc" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment