Comments (2)
This is kind of an old question but I figured I would give it a response just because I hit a similar issue.
Try changing it to
existing_user = User.where(email == new_mail, select: id)
existing_user |> Amnesia.Selection.values
I think exquisite is doing some macro programming funness and gets confused when you try to pipe or do other operations besides just the "where" call.
from amnesia.
For me it worked when I added require statement:
require Amnesia
require Database.User
require Exquisite
from amnesia.
Related Issues (20)
- [Request] Raw pattern matching support or raw wrapping support HOT 4
- Amnesia 0.2.5 / Elixir 1.4.2 defdatabase warning (x4): variable "metadata" does not exist... HOT 2
- Pass arguments to deftable HOT 4
- Queries with and/or operators not working (on Elixir 1.6) HOT 14
- foldl-like function that returns a struct HOT 1
- "Backup restore" doesn't restore the last value of "autoincrement" column HOT 3
- Unable to specify storage options,
- Documentation error for deftable
- Mix task to create database fails HOT 1
- compilation issue HOT 7
- How to set the :dir variable HOT 1
- Unable to use Amnesia in Elixir 1.7.x HOT 1
- Another issue with Elixir 1.7 - Kernel.Typespec.defines_type?/3 is undefined HOT 2
- Dialyzer warnings when defining database HOT 1
- Management HOT 1
- Suggestion: Remove less-than-tasteful RMS quote HOT 4
- Getting newly autoincremented id of Amnesia's table row
- elixir 1.12.x and dependencies
- Deploying with Amnesia on prod HOT 8
- how can I override table definition methods like where() and match() HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amnesia.