node-firebird 1.1.3 → 1.1.4
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.
- package/README.md +4 -4
- package/lib/index.d.ts +2 -2
- package/lib/index.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -230,7 +230,7 @@ Firebird.attach(options, (err, db) => {
|
|
|
230
230
|
if (err)
|
|
231
231
|
throw err;
|
|
232
232
|
|
|
233
|
-
db.transaction(Firebird.
|
|
233
|
+
db.transaction(Firebird.ISOLATION_READ_COMMITTED, (err, transaction) => {
|
|
234
234
|
if (err) {
|
|
235
235
|
throw err;
|
|
236
236
|
}
|
|
@@ -318,10 +318,10 @@ Firebird.attach(options, function(err, db) {
|
|
|
318
318
|
__Transaction types:__
|
|
319
319
|
|
|
320
320
|
- `Firebird.ISOLATION_READ_UNCOMMITTED`
|
|
321
|
-
- `Firebird.
|
|
321
|
+
- `Firebird.ISOLATION_READ_COMMITTED`
|
|
322
322
|
- `Firebird.ISOLATION_REPEATABLE_READ`
|
|
323
323
|
- `Firebird.ISOLATION_SERIALIZABLE`
|
|
324
|
-
- `Firebird.
|
|
324
|
+
- `Firebird.ISOLATION_READ_COMMITTED_READ_ONLY`
|
|
325
325
|
|
|
326
326
|
```js
|
|
327
327
|
Firebird.attach(options, function(err, db) {
|
|
@@ -330,7 +330,7 @@ Firebird.attach(options, function(err, db) {
|
|
|
330
330
|
throw err;
|
|
331
331
|
|
|
332
332
|
// db = DATABASE
|
|
333
|
-
db.transaction(Firebird.
|
|
333
|
+
db.transaction(Firebird.ISOLATION_READ_COMMITTED, function(err, transaction) {
|
|
334
334
|
transaction.query('INSERT INTO users VALUE(?,?)', [1, 'Janko'], function(err, result) {
|
|
335
335
|
|
|
336
336
|
if (err) {
|
package/lib/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ declare module 'node-firebird' {
|
|
|
19
19
|
/** A transaction sees changes done by uncommitted transactions. */
|
|
20
20
|
export const ISOLATION_READ_UNCOMMITTED: number[];
|
|
21
21
|
/** A transaction sees only data committed before the statement has been executed. */
|
|
22
|
-
export const
|
|
22
|
+
export const ISOLATION_READ_COMMITTED: number[];
|
|
23
23
|
/** A transaction sees during its lifetime only data committed before the transaction has been started. */
|
|
24
24
|
export const ISOLATION_REPEATABLE_READ: number[];
|
|
25
25
|
/**
|
|
@@ -27,7 +27,7 @@ declare module 'node-firebird' {
|
|
|
27
27
|
* Data accessed in the context of a serializable transaction cannot be accessed by any other transaction.
|
|
28
28
|
*/
|
|
29
29
|
export const ISOLATION_SERIALIZABLE: number[];
|
|
30
|
-
export const
|
|
30
|
+
export const ISOLATION_READ_COMMITTED_READ_ONLY: number[];
|
|
31
31
|
|
|
32
32
|
export type Isolation = number[];
|
|
33
33
|
|
package/lib/index.js
CHANGED
|
@@ -810,10 +810,10 @@ const DESCRIBE = [
|
|
|
810
810
|
|
|
811
811
|
const
|
|
812
812
|
ISOLATION_READ_UNCOMMITTED = [isc_tpb_version3, isc_tpb_write, isc_tpb_wait, isc_tpb_read_committed, isc_tpb_rec_version],
|
|
813
|
-
|
|
813
|
+
ISOLATION_READ_COMMITTED = [isc_tpb_version3, isc_tpb_write, isc_tpb_wait, isc_tpb_read_committed, isc_tpb_no_rec_version],
|
|
814
814
|
ISOLATION_REPEATABLE_READ = [isc_tpb_version3, isc_tpb_write, isc_tpb_wait, isc_tpb_concurrency],
|
|
815
815
|
ISOLATION_SERIALIZABLE = [isc_tpb_version3, isc_tpb_write, isc_tpb_wait, isc_tpb_consistency],
|
|
816
|
-
|
|
816
|
+
ISOLATION_READ_COMMITTED_READ_ONLY = [isc_tpb_version3, isc_tpb_read, isc_tpb_wait, isc_tpb_read_committed, isc_tpb_no_rec_version];
|
|
817
817
|
|
|
818
818
|
const
|
|
819
819
|
DEFAULT_HOST = '127.0.0.1',
|
|
@@ -845,10 +845,10 @@ exports.WIRE_CRYPT_DISABLE = WIRE_CRYPT_DISABLE;
|
|
|
845
845
|
exports.WIRE_CRYPT_ENABLE = WIRE_CRYPT_ENABLE;
|
|
846
846
|
|
|
847
847
|
exports.ISOLATION_READ_UNCOMMITTED = ISOLATION_READ_UNCOMMITTED;
|
|
848
|
-
exports.
|
|
848
|
+
exports.ISOLATION_READ_COMMITTED = ISOLATION_READ_COMMITTED;
|
|
849
849
|
exports.ISOLATION_REPEATABLE_READ = ISOLATION_REPEATABLE_READ;
|
|
850
850
|
exports.ISOLATION_SERIALIZABLE = ISOLATION_SERIALIZABLE;
|
|
851
|
-
exports.
|
|
851
|
+
exports.ISOLATION_READ_COMMITTED_READ_ONLY = ISOLATION_READ_COMMITTED_READ_ONLY;
|
|
852
852
|
|
|
853
853
|
if (!String.prototype.padLeft) {
|
|
854
854
|
String.prototype.padLeft = function(max, c) {
|