Skip to content

Feature request: Transaction object #83

Description

@Fredolx

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