Giter Site home page Giter Site logo

Detect wasm version about sqlite3.dart HOT 3 CLOSED

alextekartik avatar alextekartik commented on September 6, 2024
Detect wasm version

from sqlite3.dart.

Comments (3)

alextekartik avatar alextekartik commented on September 6, 2024 1

Yes the intention is to be backward compatible as much as possible and yeah bug might happen but since the developer should see a relevant exception in this case while developing, I'm perfectly fine in having him manually update the wasm binary when he sees obvious crashes. I guess you might have similar issue with drift on the web. Closing the issue, thanks.

from sqlite3.dart.

simolus3 avatar simolus3 commented on September 6, 2024

The intention was for changes to be backwards compatible, so it looks like I've slipped up here -- sorry!

I think we can provide the expected version as a constant in the library - you can get the actual version through CommonSqlite.version and compare them.

from sqlite3.dart.

simolus3 avatar simolus3 commented on September 6, 2024

So I've just realized that this wouldn't work of course since the error happened when instantiating CommonSqlite -- oops! I think the original problem can reasonably be considered a bug in this package since we should support older versions in general. That was fixed in 4d4251d.

The desired behavior in this package is to throw an exception suggesting a upgrade for sqlite3.wasm when an unsupported feature is used, but to generally work with older versions of the compiled library. That's also the intention that you had for the sqflite wrapper, right? Do you still need an API to check the expected version if older versions are supported?

from sqlite3.dart.

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.