@bernierllc/database-adapter-core 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,5 +28,23 @@ export interface ITransaction {
28
28
  * @returns true if transaction is active
29
29
  */
30
30
  isActive(): boolean;
31
+ /**
32
+ * Create a savepoint within the transaction
33
+ * @param name - Savepoint name
34
+ * @throws Error if transaction is not active
35
+ */
36
+ savepoint?(name: string): Promise<void>;
37
+ /**
38
+ * Rollback to a specific savepoint
39
+ * @param name - Savepoint name
40
+ * @throws Error if transaction is not active
41
+ */
42
+ rollbackToSavepoint?(name: string): Promise<void>;
43
+ /**
44
+ * Release a savepoint
45
+ * @param name - Savepoint name
46
+ * @throws Error if transaction is not active
47
+ */
48
+ releaseSavepoint?(name: string): Promise<void>;
31
49
  }
32
50
  //# sourceMappingURL=ITransaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ITransaction.d.ts","sourceRoot":"","sources":["../../src/interfaces/ITransaction.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,oCAAoC;IACpC,EAAE,EAAE,MAAM,CAAC;IAEX;;;;;;OAMG;IACH,KAAK,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IAEtE;;;OAGG;IACH,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAExB;;;OAGG;IACH,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1B;;;OAGG;IACH,QAAQ,IAAI,OAAO,CAAC;CACrB"}
1
+ {"version":3,"file":"ITransaction.d.ts","sourceRoot":"","sources":["../../src/interfaces/ITransaction.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,oCAAoC;IACpC,EAAE,EAAE,MAAM,CAAC;IAEX;;;;;;OAMG;IACH,KAAK,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IAEtE;;;OAGG;IACH,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAExB;;;OAGG;IACH,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1B;;;OAGG;IACH,QAAQ,IAAI,OAAO,CAAC;IAEpB;;;;OAIG;IACH,SAAS,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAExC;;;;OAIG;IACH,mBAAmB,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAElD;;;;OAIG;IACH,gBAAgB,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChD"}
package/package.json CHANGED
@@ -1,17 +1,9 @@
1
1
  {
2
2
  "name": "@bernierllc/database-adapter-core",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Abstract Database Interface for MECE Architecture - provides database-agnostic interfaces and base implementations for all database operations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
- "scripts": {
8
- "build": "tsc",
9
- "test": "jest --watch",
10
- "test:run": "jest",
11
- "test:coverage": "jest --coverage",
12
- "lint": "eslint src/**/*.ts",
13
- "clean": "rm -rf dist"
14
- },
15
7
  "keywords": [
16
8
  "database",
17
9
  "adapter",
@@ -27,8 +19,8 @@
27
19
  "author": "Bernier LLC",
28
20
  "license": "UNLICENSED",
29
21
  "dependencies": {
30
- "@bernierllc/logger": "^1.0.0",
31
- "@bernierllc/crypto-utils": "^1.0.0"
22
+ "@bernierllc/logger": "1.0.3",
23
+ "@bernierllc/crypto-utils": "1.0.4"
32
24
  },
33
25
  "devDependencies": {
34
26
  "@types/jest": "^29.5.0",
@@ -50,6 +42,15 @@
50
42
  "README.md"
51
43
  ],
52
44
  "publishConfig": {
53
- "access": "public"
45
+ "access": "public",
46
+ "registry": "https://registry.npmjs.org/"
47
+ },
48
+ "scripts": {
49
+ "build": "tsc",
50
+ "test": "jest --watch",
51
+ "test:run": "jest",
52
+ "test:coverage": "jest --coverage",
53
+ "lint": "eslint src/**/*.ts",
54
+ "clean": "rm -rf dist"
54
55
  }
55
- }
56
+ }