From e67f9bca9828d40737fcc3277035bcadb452468c Mon Sep 17 00:00:00 2001 From: igalklebanov Date: Mon, 29 Apr 2024 14:32:47 +0300 Subject: [PATCH] jsdocs. --- src/kysely.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/kysely.ts b/src/kysely.ts index ddb1f7760..32a21bd9c 100644 --- a/src/kysely.ts +++ b/src/kysely.ts @@ -275,7 +275,12 @@ export class Kysely * The {@link ControlledTransactionBuilder.execute} method can then be called * to start the transaction and return a {@link ControlledTransaction}. * - * A {@link ControlledTransaction} allows you to commit and rollback manually, execute savepoint commands. It extends {@link Transaction} which extends {@link Kysely}, so you can run queries inside the transaction. + * A {@link ControlledTransaction} allows you to commit and rollback manually, + * execute savepoint commands. It extends {@link Transaction} which extends {@link Kysely}, + * so you can run queries inside the transaction. Once the transaction is committed, + * or rolled back, it can't be used anymore - all queries will throw an error. + * This is to prevent accidentally running queries outside the transaction - where + * atomicity is not guaranteed anymore. * * ### Examples *