Coder Social home page Coder Social logo

Comments (7)

gibbz00 avatar gibbz00 commented on May 31, 2024 3

Unfortunately not. It looks like it's using surrealdb main branch for something. I managed to do cargo run on source code and it works fine.

Well then you were lucky ;) Running cargo update on this repo will update surrealdb to an incompatible git ref. I'll try to send in a PR asap.

from surrealdb-migrations.

johansmitsnl avatar johansmitsnl commented on May 31, 2024 2

I created a PR #53 that uses the 1.0.0 release.

from surrealdb-migrations.

johansmitsnl avatar johansmitsnl commented on May 31, 2024

Where you able to solve it?

from surrealdb-migrations.

marko-lazic avatar marko-lazic commented on May 31, 2024

Unfortunately not. It looks like it's using surrealdb main branch for something. I managed to do cargo run on source code and it works fine.

from surrealdb-migrations.

johansmitsnl avatar johansmitsnl commented on May 31, 2024

I just tried to change the Ok value of the error. But there are more changes needed:

note: associated function defined here
   --> /home/johan/.cargo/git/checkouts/surrealdb-migrations-634b65362507a38b/6e0162e/src/lib.rs:92:12
    |
92  |     pub fn new(db: &'a Surreal<C>) -> Self {
    |            ^^^

error[E0308]: mismatched types
   --> src/main.rs:51:32
    |
51  |     match MigrationRunner::new(&app_state.surrealdb)
    |           -------------------- ^^^^^^^^^^^^^^^^^^^^ expected `&Surreal<_>`, found `&Surreal<Client>`
    |           |
    |           arguments to this function are incorrect
    |
    = note: `Surreal<Client>` and `Surreal<_>` have similar names, but are actually distinct types

from surrealdb-migrations.

alveshelio avatar alveshelio commented on May 31, 2024

Hi,

I had surrealdb-migrations installed and tried to update with cargo install surrealdb-migrations --force but I'm still getting this error.

Even after uninstalling surrealdb-migration (cargo uninstall surrealdb-migration) and deleting surrealdb-migrations-0.9.12 inside .cargo/registry/src/index.crates.io-{id} I'm still getting this error.

Has anyone been able to solve this problem?

from surrealdb-migrations.

Odonno avatar Odonno commented on May 31, 2024

With the release of 1.0.0, this issue should no longer occurs.

You can download the latest release of surrealdb-migrations:

cargo install [email protected]

from surrealdb-migrations.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.