Skip to content

[v4] Support Database Transactions with Knex, please #11792

@willnode

Description

@willnode

Feature request

Please describe your feature request

  • I have created my request on the Product Board before I submitted this issue
  • I have looked at all the other requests on the Product Board before I submitted this issue

Summary

Please support database transactions in v4. v3 actually supports database transactions since it is used with Bookshelf.js. v4 uses a custom database engine and I can't see how I can insert knex.js transactions in custom code.

Why is it needed?

Please read my draft article on how to use database transactions in v3, it also tells the real reason why database transactions is a must:

strapi/community-content#539

Suggested solution(s)

We can add a parameter transaction in the query engine.

const createQueryBuilder = (uid, db) => {

Related issue(s)/PR(s)

If there's nobody has time to implement this, will you (the Strapi team) accept PRs to this feature? This feature is so critical to me.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions