FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Feature request: Transaction object · Issue #83 · powersync-ja/sqlite_async.dart · GitHub

Feature request: Transaction object #83

Description

It would be greatly appreciated if we could get a Transaction object that could be obtained by doing db.writeTransaction() so we could gradually build a transaction and do transaction.commit when done.

Example:

var db = SqliteDatabase(path: "mydb");
var tx = await db.writeTransaction();
var id = await tx.execute("INSERT ...", params);
var id2 = await tx.execute("INSERT ..." params);
// ...
await tx.commit();

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL