Giter VIP home page Giter VIP logo

Comments (1)

panarch avatar panarch commented on May 22, 2024 3

Ok, in case of sled, you're right. currently sled does not support scan in transaction.
And for now, GlueSQL also does not have transaction feature support yet.
I hope that they implement it not in too late

Transaction will be provided as a trait, like existing 2 store traits: Store and StoreMut.

And precisely, MVCC Transaction is may be a role of storage layer not execution layer which gluesql takes.
So, GlueSQL will provide proper interface may be just named Transaction trait.

If any storage implements all three Store, StoreMut and Transaction traits, then it can run all existing sql queries and transaction feature.
But not like Store and StoreMut traits, I'm currently thinking about making Transaction as an optional.

For example... GlueSQL-js has another custom storages, one is based on html5 localStorage.
And localStorage api is too too simple so it's almost not possible to provide Transaction support, then it can just implement only 2 traits Store and StoreMut. It still executes most of sql queries only except for transaction queries something like BEGIN; COMMIT; ROLLBACK;.

Future plan is this,
Providing store traits as independent as possible, in the future it will be...

  • Store
  • StoreMut
  • Transaction
  • ForeignKey
  • Index
  • ...

And if someone wants to make their own custom storage, they can pick the whole of them or it's also ok to pick only few of them.

from gluesql.

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.