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

Fails to build with postgres feature #96

Open
kanhirun opened this issue Apr 25, 2024 · 0 comments
Open

Fails to build with postgres feature #96

kanhirun opened this issue Apr 25, 2024 · 0 comments

Comments

@kanhirun
Copy link

kanhirun commented Apr 25, 2024

Summary

I'm interested in using postgres for my database, but cargo build --features postgres fails with a type error. The solo-machine-core crate does support this as a feature, but isn't working as expected.

Replicating the error

  1. Clone repo
  2. cargo build --features postgres
  3. Observe the following error:
...
error[E0271]: type mismatch resolving `<impl Executor<'e, Database = Db> as Executor<'_>>::Database == Sqlite`
   --> solo-machine-core/src/model/chain/chain_keys.rs:94:16
    |
94  |     .fetch_all(executor)
    |      --------- ^^^^^^^^ expected `Sqlite`, found `Postgres`
    |      |
    |      required by a bound introduced by this call
    |
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