Coder Social home page Coder Social logo

Comments (2)

simolus3 avatar simolus3 commented on July 18, 2024

The error indicates that you're using an old sqlite3 version. RETURNING requires sqlite 3.35.0 or later. As unit tests in drift have to use the sqlite3 from the system (they're not running in a Flutter engine, so sqlite3_flutter_libs doesn't apply), they can fail if running against old sqlite3 versions.

The easiest fix is to upgrade your sqlite3 install. If that's not possible because you don't control the environment, you can compile sqlite3 yourself, say as part of the CI. I'm not experienced with Jenkins, but for GitHub actions you could take a look at this workflow for inspiration. It's caching the compilation so it doesn't slow down runs, and with a custom libsqlite3.so, you can use this to priotize it over the one from the system: https://github.com/simolus3/sqlite3.dart/blob/2ffd871606e0f43f68f1364d8f4e1428dcbf3792/.github/workflows/main.yml#L145-L150 You can also grab precompiled libraries from here and put them into LD_LIBRARY_PATH.

from drift.

bytepoets-jhe avatar bytepoets-jhe commented on July 18, 2024

Thank you for the explanation!

from drift.

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.