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

Support ecto prefixes #43

Open
michalmuskala opened this issue Oct 16, 2015 · 1 comment
Open

Support ecto prefixes #43

michalmuskala opened this issue Oct 16, 2015 · 1 comment

Comments

@michalmuskala
Copy link
Collaborator

The prefixes should change the database, once it's possible from the driver.

They should be supported in all queries and in migrations: elixir-ecto/ecto#1004

@Xorelock
Copy link

Xorelock commented Mar 1, 2017

mongo_ecto/lib/mongo_ecto/connection.ex:45: (on the ecto-2 branch, using ericmj/mongodb master)

-opts = [projection: projection, sort: query.order] ++ query.opts ++ opts
+opts = [projection: projection, sort: query.order, database: query.database] ++ query.opts ++ opts

haven't figured out why it's query.database and not query.prefix, but that might be an implementation detail of NormalizedQuery... ?

This was a good excuse to learn elixir debugging tools. hope this helps!

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

2 participants