@encore.dev/sdk 2.0.0-beta.14 → 2.0.0-beta.16
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 +144 -90
- package/app_meta.ts +56 -54
- package/config/config.test.ts +47 -13
- package/config/config.ts +60 -57
- package/config/secrets.ts +47 -50
- package/config/value.ts +23 -26
- package/cron/mod.test.ts +12 -0
- package/cron/mod.ts +37 -22
- package/dist/app_meta.d.ts +52 -50
- package/dist/app_meta.d.ts.map +1 -1
- package/dist/app_meta.js +2 -2
- package/dist/app_meta.js.map +1 -1
- package/dist/config/config.d.ts +58 -55
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +8 -9
- package/dist/config/config.js.map +1 -1
- package/dist/config/secrets.d.ts +45 -50
- package/dist/config/secrets.d.ts.map +1 -1
- package/dist/config/secrets.js +11 -9
- package/dist/config/secrets.js.map +1 -1
- package/dist/config/value.d.ts +20 -23
- package/dist/config/value.d.ts.map +1 -1
- package/dist/config/value.js +20 -23
- package/dist/config/value.js.map +1 -1
- package/dist/cron/mod.d.ts +34 -20
- package/dist/cron/mod.d.ts.map +1 -1
- package/dist/cron/mod.js +13 -13
- package/dist/cron/mod.js.map +1 -1
- package/dist/frontends/mod.d.ts +20 -19
- package/dist/frontends/mod.d.ts.map +1 -1
- package/dist/frontends/mod.js +20 -19
- package/dist/frontends/mod.js.map +1 -1
- package/dist/gateway/errors.d.ts +28 -30
- package/dist/gateway/errors.d.ts.map +1 -1
- package/dist/gateway/errors.js +29 -31
- package/dist/gateway/errors.js.map +1 -1
- package/dist/gateway/match.d.ts +54 -54
- package/dist/gateway/match.d.ts.map +1 -1
- package/dist/gateway/match.js +56 -56
- package/dist/gateway/match.js.map +1 -1
- package/dist/gateway/middleware.d.ts +62 -64
- package/dist/gateway/middleware.d.ts.map +1 -1
- package/dist/gateway/middleware.js +1 -1
- package/dist/gateway/middleware.js.map +1 -1
- package/dist/gateway/mod.d.ts +64 -67
- package/dist/gateway/mod.d.ts.map +1 -1
- package/dist/gateway/mod.js +72 -76
- package/dist/gateway/mod.js.map +1 -1
- package/dist/gateway/request.d.ts +138 -134
- package/dist/gateway/request.d.ts.map +1 -1
- package/dist/gateway/request.js +117 -108
- package/dist/gateway/request.js.map +1 -1
- package/dist/gateway/serve.d.ts +29 -34
- package/dist/gateway/serve.d.ts.map +1 -1
- package/dist/gateway/serve.js +51 -56
- package/dist/gateway/serve.js.map +1 -1
- package/dist/gateways/mod.d.ts +23 -21
- package/dist/gateways/mod.d.ts.map +1 -1
- package/dist/gateways/mod.js +25 -23
- package/dist/gateways/mod.js.map +1 -1
- package/dist/internal/otel/http.d.ts +4 -2
- package/dist/internal/otel/http.d.ts.map +1 -1
- package/dist/internal/otel/http.js +32 -5
- package/dist/internal/otel/http.js.map +1 -1
- package/dist/internal/runtime/napi/napi.cjs +6 -5
- package/dist/internal/runtime/napi/napi.d.cts +58 -16
- package/dist/internal/runtime/shutdown.d.ts +75 -57
- package/dist/internal/runtime/shutdown.d.ts.map +1 -1
- package/dist/internal/runtime/shutdown.js +88 -84
- package/dist/internal/runtime/shutdown.js.map +1 -1
- package/dist/log/logger.d.ts +43 -37
- package/dist/log/logger.d.ts.map +1 -1
- package/dist/log/logger.js +26 -25
- package/dist/log/logger.js.map +1 -1
- package/dist/metrics/mod.d.ts +133 -114
- package/dist/metrics/mod.d.ts.map +1 -1
- package/dist/metrics/mod.js +109 -101
- package/dist/metrics/mod.js.map +1 -1
- package/dist/otel.d.ts +6 -3
- package/dist/otel.d.ts.map +1 -1
- package/dist/otel.js +6 -3
- package/dist/otel.js.map +1 -1
- package/dist/pubsub/subscription.d.ts +88 -116
- package/dist/pubsub/subscription.d.ts.map +1 -1
- package/dist/pubsub/subscription.js +14 -17
- package/dist/pubsub/subscription.js.map +1 -1
- package/dist/pubsub/topic.d.ts +86 -113
- package/dist/pubsub/topic.d.ts.map +1 -1
- package/dist/pubsub/topic.js +68 -82
- package/dist/pubsub/topic.js.map +1 -1
- package/dist/redaction/mod.d.ts +62 -0
- package/dist/redaction/mod.d.ts.map +1 -0
- package/dist/redaction/mod.js +102 -0
- package/dist/redaction/mod.js.map +1 -0
- package/dist/reqctx/mod.d.ts +83 -86
- package/dist/reqctx/mod.d.ts.map +1 -1
- package/dist/reqctx/mod.js +39 -41
- package/dist/reqctx/mod.js.map +1 -1
- package/dist/services/index.d.ts +76 -75
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +73 -71
- package/dist/services/index.js.map +1 -1
- package/dist/shutdown/mod.d.ts +26 -25
- package/dist/shutdown/mod.d.ts.map +1 -1
- package/dist/shutdown/mod.js +26 -25
- package/dist/shutdown/mod.js.map +1 -1
- package/dist/storage/clickhouse/database.d.ts +113 -115
- package/dist/storage/clickhouse/database.d.ts.map +1 -1
- package/dist/storage/clickhouse/database.js +65 -79
- package/dist/storage/clickhouse/database.js.map +1 -1
- package/dist/storage/clickhouse/errors.d.ts +25 -26
- package/dist/storage/clickhouse/errors.d.ts.map +1 -1
- package/dist/storage/clickhouse/errors.js +15 -17
- package/dist/storage/clickhouse/errors.js.map +1 -1
- package/dist/storage/clickhouse/mod.d.ts +10 -10
- package/dist/storage/clickhouse/mod.js +10 -10
- package/dist/storage/objects/bucket.d.ts +230 -203
- package/dist/storage/objects/bucket.d.ts.map +1 -1
- package/dist/storage/objects/bucket.js +146 -106
- package/dist/storage/objects/bucket.js.map +1 -1
- package/dist/storage/objects/error.d.ts +4 -4
- package/dist/storage/objects/error.js +4 -4
- package/dist/storage/objects/mod.d.ts +1 -1
- package/dist/storage/objects/mod.d.ts.map +1 -1
- package/dist/storage/objects/mod.js.map +1 -1
- package/dist/storage/objects/refs.d.ts +2 -5
- package/dist/storage/objects/refs.d.ts.map +1 -1
- package/dist/storage/objects/refs.js.map +1 -1
- package/dist/storage/postgres/database.d.ts +124 -149
- package/dist/storage/postgres/database.d.ts.map +1 -1
- package/dist/storage/postgres/database.js +98 -135
- package/dist/storage/postgres/database.js.map +1 -1
- package/dist/storage/postgres/errors.d.ts +42 -48
- package/dist/storage/postgres/errors.d.ts.map +1 -1
- package/dist/storage/postgres/errors.js +44 -51
- package/dist/storage/postgres/errors.js.map +1 -1
- package/dist/storage/postgres/interval.d.ts +19 -19
- package/dist/storage/postgres/interval.d.ts.map +1 -1
- package/dist/storage/postgres/interval.js +21 -21
- package/dist/storage/postgres/interval.js.map +1 -1
- package/dist/storage/redis/bitfield.d.ts +48 -23
- package/dist/storage/redis/bitfield.d.ts.map +1 -1
- package/dist/storage/redis/bitfield.js +38 -19
- package/dist/storage/redis/bitfield.js.map +1 -1
- package/dist/storage/redis/command.d.ts +16 -12
- package/dist/storage/redis/command.d.ts.map +1 -1
- package/dist/storage/redis/command.js +16 -12
- package/dist/storage/redis/command.js.map +1 -1
- package/dist/storage/redis/commands.d.ts +99 -100
- package/dist/storage/redis/commands.d.ts.map +1 -1
- package/dist/storage/redis/commands.js +84 -85
- package/dist/storage/redis/commands.js.map +1 -1
- package/dist/storage/redis/database.d.ts +138 -122
- package/dist/storage/redis/database.d.ts.map +1 -1
- package/dist/storage/redis/database.js +120 -101
- package/dist/storage/redis/database.js.map +1 -1
- package/dist/storage/redis/mod.d.ts +52 -48
- package/dist/storage/redis/mod.d.ts.map +1 -1
- package/dist/storage/redis/mod.js +52 -48
- package/dist/storage/redis/mod.js.map +1 -1
- package/dist/storage/redis/options.d.ts +26 -24
- package/dist/storage/redis/options.d.ts.map +1 -1
- package/dist/storage/redis/options.js.map +1 -1
- package/dist/storage/redis/pubsub.d.ts +16 -16
- package/dist/storage/redis/pubsub.d.ts.map +1 -1
- package/dist/storage/redis/pubsub.js +14 -14
- package/dist/storage/redis/pubsub.js.map +1 -1
- package/dist/storage/redis/reply.d.ts +80 -72
- package/dist/storage/redis/reply.d.ts.map +1 -1
- package/dist/storage/redis/reply.js +53 -46
- package/dist/storage/redis/reply.js.map +1 -1
- package/dist/storage/redis/scan.d.ts +4 -4
- package/dist/storage/redis/scan.d.ts.map +1 -1
- package/dist/storage/redis/scan.js +6 -6
- package/dist/storage/redis/scan.js.map +1 -1
- package/dist/storage/redis/script.d.ts +28 -21
- package/dist/storage/redis/script.d.ts.map +1 -1
- package/dist/storage/redis/script.js +29 -22
- package/dist/storage/redis/script.js.map +1 -1
- package/dist/storage/redis/target.d.ts +17 -1
- package/dist/storage/redis/target.d.ts.map +1 -1
- package/dist/storage/redis/target.js +30 -1
- package/dist/storage/redis/target.js.map +1 -1
- package/dist/storage/redis/wire.d.ts +6 -6
- package/dist/storage/redis/wire.d.ts.map +1 -1
- package/dist/storage/redis/wire.js +6 -6
- package/dist/storage/redis/wire.js.map +1 -1
- package/dist/testing/mod.d.ts +83 -88
- package/dist/testing/mod.d.ts.map +1 -1
- package/dist/testing/mod.js +75 -81
- package/dist/testing/mod.js.map +1 -1
- package/dist/testing/playwright.d.ts +28 -32
- package/dist/testing/playwright.d.ts.map +1 -1
- package/dist/testing/playwright.js +22 -27
- package/dist/testing/playwright.js.map +1 -1
- package/dist/testing/puppeteer.d.ts +11 -12
- package/dist/testing/puppeteer.d.ts.map +1 -1
- package/dist/testing/puppeteer.js +17 -18
- package/dist/testing/puppeteer.js.map +1 -1
- package/dist/testing/system.d.ts +72 -90
- package/dist/testing/system.d.ts.map +1 -1
- package/dist/testing/system.js +90 -107
- package/dist/testing/system.js.map +1 -1
- package/dist/tracing/http.d.ts +2 -1
- package/dist/tracing/http.d.ts.map +1 -1
- package/dist/tracing/http.js +2 -1
- package/dist/tracing/http.js.map +1 -1
- package/dist/tracing/node.d.ts.map +1 -1
- package/dist/tracing/node.js +1 -1
- package/dist/tracing/node.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/frontends/mod.test.ts +6 -2
- package/frontends/mod.ts +20 -19
- package/gateway/errors.ts +30 -32
- package/gateway/match.ts +61 -57
- package/gateway/middleware.ts +62 -64
- package/gateway/mod.ts +73 -76
- package/gateway/request.ts +143 -140
- package/gateway/serve.ts +58 -63
- package/gateways/mod.ts +25 -23
- package/internal/otel/http.test.ts +50 -0
- package/internal/otel/http.ts +40 -5
- package/internal/runtime/napi/napi.cjs +6 -5
- package/internal/runtime/napi/napi.d.cts +58 -16
- package/internal/runtime/shutdown.ts +113 -101
- package/log/logger.test.ts +8 -0
- package/log/logger.ts +48 -45
- package/metrics/mod.ts +138 -122
- package/otel.ts +6 -3
- package/package.json +6 -1
- package/pubsub/subscription.ts +93 -123
- package/pubsub/topic.ts +96 -130
- package/redaction/bridge.test.ts +99 -0
- package/redaction/mod.test.ts +188 -0
- package/redaction/mod.ts +226 -0
- package/reqctx/mod.ts +83 -86
- package/services/index.ts +78 -78
- package/shutdown/mod.ts +26 -25
- package/storage/clickhouse/database.ts +115 -129
- package/storage/clickhouse/errors.ts +27 -29
- package/storage/clickhouse/mod.ts +10 -10
- package/storage/objects/bucket.test.ts +168 -16
- package/storage/objects/bucket.ts +336 -247
- package/storage/objects/error.ts +4 -4
- package/storage/objects/mod.ts +1 -0
- package/storage/objects/refs.ts +2 -5
- package/storage/postgres/database.ts +131 -164
- package/storage/postgres/errors.ts +45 -52
- package/storage/postgres/interval.ts +21 -21
- package/storage/redis/bitfield.ts +51 -26
- package/storage/redis/command.ts +16 -12
- package/storage/redis/commands.ts +99 -100
- package/storage/redis/database.ts +145 -123
- package/storage/redis/mod.ts +52 -48
- package/storage/redis/options.ts +26 -24
- package/storage/redis/pubsub.ts +14 -14
- package/storage/redis/redis.test.ts +17 -2
- package/storage/redis/reply.ts +85 -77
- package/storage/redis/scan.ts +6 -6
- package/storage/redis/script.ts +29 -22
- package/storage/redis/target.ts +34 -1
- package/storage/redis/wire.ts +8 -8
- package/testing/mod.ts +99 -105
- package/testing/playwright.ts +32 -37
- package/testing/puppeteer.ts +22 -23
- package/testing/system.ts +117 -133
- package/tracing/http.ts +2 -1
- package/tracing/native.test.ts +158 -8
- package/tracing/node.ts +1 -0
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
import type { Target } from './target.js';
|
|
2
2
|
import { Cmd } from './wire.js';
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* A bitfield integer type consisting of a signedness prefix (`"i"` or `"u"`)
|
|
5
|
+
* and a bit width, such as `"u8"` or `"i5"`.
|
|
6
|
+
*/
|
|
4
7
|
export type BitfieldType = `${'i' | 'u'}${number}`;
|
|
5
8
|
/**
|
|
6
|
-
*
|
|
7
|
-
* width (`"#2"`
|
|
9
|
+
* The starting position of a bitfield integer: either a bit index, or a
|
|
10
|
+
* multiple of the integer type's width (for example, `"#2"` for a `u8` is
|
|
11
|
+
* bit 16).
|
|
8
12
|
*/
|
|
9
13
|
export type BitOffset = number | `#${number}`;
|
|
10
14
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* `
|
|
15
|
+
* Controls how subsequent `set` and `incrBy` operations handle values that
|
|
16
|
+
* overflow their integer type's range:
|
|
17
|
+
*
|
|
18
|
+
* - `"wrap"`: wrap around (default)
|
|
19
|
+
* - `"sat"`: saturate at the type's minimum or maximum value
|
|
20
|
+
* - `"fail"`: leave the value unchanged and return `null`
|
|
15
21
|
*/
|
|
16
22
|
export type Overflow = 'wrap' | 'sat' | 'fail';
|
|
17
23
|
/**
|
|
18
|
-
*
|
|
19
|
-
* `bitmap.bitfieldRo
|
|
24
|
+
* Builder for read-only bitfield operations (`BITFIELD_RO`), created by
|
|
25
|
+
* `bitmap.bitfieldRo`. Add reads with {@link BitfieldRo.get} and run them with
|
|
26
|
+
* {@link BitfieldRo.invoke}.
|
|
20
27
|
*/
|
|
21
28
|
export declare class BitfieldRo {
|
|
22
29
|
protected readonly t: Target;
|
|
@@ -26,25 +33,35 @@ export declare class BitfieldRo {
|
|
|
26
33
|
/** Reads the integer of type `type` at `offset`. */
|
|
27
34
|
get(type: BitfieldType, offset: BitOffset): this;
|
|
28
35
|
/**
|
|
29
|
-
*
|
|
30
|
-
* order
|
|
31
|
-
* `
|
|
36
|
+
* Executes the operations and returns one result per `get`, `set`, and
|
|
37
|
+
* `incrBy` in order (`null` for any operation aborted by
|
|
38
|
+
* `overflow('fail')`). Throws a `RangeError` if a returned value cannot be
|
|
39
|
+
* represented accurately as a JavaScript `number`.
|
|
32
40
|
*/
|
|
33
41
|
invoke(): Promise<(number | null)[]>;
|
|
34
42
|
}
|
|
35
43
|
/**
|
|
36
|
-
*
|
|
37
|
-
* operations
|
|
44
|
+
* Builder for bitfield operations (`BITFIELD`), created by `bitmap.bitfield`.
|
|
45
|
+
* Add operations in order and execute them as a single command with
|
|
46
|
+
* {@link Bitfield.invoke}.
|
|
38
47
|
*/
|
|
39
48
|
export declare class Bitfield extends BitfieldRo {
|
|
40
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* Sets the integer of type `type` at `offset` to `value` and returns its
|
|
51
|
+
* previous value.
|
|
52
|
+
*/
|
|
41
53
|
set(type: BitfieldType, offset: BitOffset, value: number | bigint): this;
|
|
42
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* Adds `increment` to the integer of type `type` at `offset` and returns the
|
|
56
|
+
* new value.
|
|
57
|
+
*/
|
|
43
58
|
incrBy(type: BitfieldType, offset: BitOffset, increment: number | bigint): this;
|
|
44
|
-
/**
|
|
59
|
+
/**
|
|
60
|
+
* Sets the overflow behavior for subsequent `set` and `incrBy` operations.
|
|
61
|
+
*/
|
|
45
62
|
overflow(mode: Overflow): this;
|
|
46
63
|
}
|
|
47
|
-
/** A {@link BitfieldRo} being queued on a pipeline or
|
|
64
|
+
/** A {@link BitfieldRo} builder being queued on a pipeline or transaction. */
|
|
48
65
|
export declare class QueuedBitfieldRo {
|
|
49
66
|
protected readonly queued: Cmd[];
|
|
50
67
|
protected readonly c: Cmd;
|
|
@@ -52,16 +69,24 @@ export declare class QueuedBitfieldRo {
|
|
|
52
69
|
constructor(queued: Cmd[], c: Cmd);
|
|
53
70
|
/** Reads the integer of type `type` at `offset`. */
|
|
54
71
|
get(type: BitfieldType, offset: BitOffset): this;
|
|
55
|
-
/** Queues the operations
|
|
72
|
+
/** Queues the accumulated operations as a single command. */
|
|
56
73
|
queue(): void;
|
|
57
74
|
}
|
|
58
|
-
/** A {@link Bitfield} being queued on a pipeline or
|
|
75
|
+
/** A {@link Bitfield} builder being queued on a pipeline or transaction. */
|
|
59
76
|
export declare class QueuedBitfield extends QueuedBitfieldRo {
|
|
60
|
-
/**
|
|
77
|
+
/**
|
|
78
|
+
* Sets the integer of type `type` at `offset` to `value` and returns its
|
|
79
|
+
* previous value.
|
|
80
|
+
*/
|
|
61
81
|
set(type: BitfieldType, offset: BitOffset, value: number | bigint): this;
|
|
62
|
-
/**
|
|
82
|
+
/**
|
|
83
|
+
* Adds `increment` to the integer of type `type` at `offset` and returns the
|
|
84
|
+
* new value.
|
|
85
|
+
*/
|
|
63
86
|
incrBy(type: BitfieldType, offset: BitOffset, increment: number | bigint): this;
|
|
64
|
-
/**
|
|
87
|
+
/**
|
|
88
|
+
* Sets the overflow behavior for subsequent `set` and `incrBy` operations.
|
|
89
|
+
*/
|
|
65
90
|
overflow(mode: Overflow): this;
|
|
66
91
|
}
|
|
67
92
|
//# sourceMappingURL=bitfield.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bitfield.d.ts","sourceRoot":"","sources":["../../../storage/redis/bitfield.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AACrC,OAAO,EAAC,GAAG,EAA0B,MAAM,QAAQ,CAAC;AAEpD
|
|
1
|
+
{"version":3,"file":"bitfield.d.ts","sourceRoot":"","sources":["../../../storage/redis/bitfield.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AACrC,OAAO,EAAC,GAAG,EAA0B,MAAM,QAAQ,CAAC;AAEpD;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,MAAM,EAAE,CAAC;AAEnD;;;;GAIG;AACH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;CAGd;AAED,4EAA4E;AAC5E,qBAAa,cAAe,SAAQ,gBAAgB;IAClD;;;OAGG;IACH,GAAG,CAAC,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAKxE;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,YAAY,EAClB,MAAM,EAAE,SAAS,EACjB,SAAS,EAAE,MAAM,GAAG,MAAM,GACzB,IAAI;IAKP;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI;CAI/B"}
|
|
@@ -12,24 +12,25 @@ function incrBy(c, type, offset, increment) {
|
|
|
12
12
|
function overflow(c, mode) {
|
|
13
13
|
c.arg('OVERFLOW').arg(mode.toUpperCase());
|
|
14
14
|
}
|
|
15
|
-
/** A bitfield's replies, one per `get`, `set
|
|
15
|
+
/** A bitfield's replies, one per `get`, `set`, and `incrBy`. */
|
|
16
16
|
function replies(v) {
|
|
17
17
|
if (v instanceof ServerError)
|
|
18
18
|
throw v;
|
|
19
19
|
if (!Array.isArray(v))
|
|
20
|
-
throw new TypeError('redis: BITFIELD
|
|
20
|
+
throw new TypeError('redis: BITFIELD did not return an array');
|
|
21
21
|
return v.map(item => {
|
|
22
22
|
if (item === null)
|
|
23
23
|
return null;
|
|
24
24
|
if (typeof item === 'bigint' && !Number.isSafeInteger(Number(item))) {
|
|
25
|
-
throw new RangeError(`redis:
|
|
25
|
+
throw new RangeError(`redis: bitfield integer ${item} does not fit in a safe JavaScript number`);
|
|
26
26
|
}
|
|
27
27
|
return numberOf(item);
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
* `bitmap.bitfieldRo
|
|
31
|
+
* Builder for read-only bitfield operations (`BITFIELD_RO`), created by
|
|
32
|
+
* `bitmap.bitfieldRo`. Add reads with {@link BitfieldRo.get} and run them with
|
|
33
|
+
* {@link BitfieldRo.invoke}.
|
|
33
34
|
*/
|
|
34
35
|
export class BitfieldRo {
|
|
35
36
|
t;
|
|
@@ -45,36 +46,46 @@ export class BitfieldRo {
|
|
|
45
46
|
return this;
|
|
46
47
|
}
|
|
47
48
|
/**
|
|
48
|
-
*
|
|
49
|
-
* order
|
|
50
|
-
* `
|
|
49
|
+
* Executes the operations and returns one result per `get`, `set`, and
|
|
50
|
+
* `incrBy` in order (`null` for any operation aborted by
|
|
51
|
+
* `overflow('fail')`). Throws a `RangeError` if a returned value cannot be
|
|
52
|
+
* represented accurately as a JavaScript `number`.
|
|
51
53
|
*/
|
|
52
54
|
async invoke() {
|
|
53
55
|
return replies(await this.t.run(this.c));
|
|
54
56
|
}
|
|
55
57
|
}
|
|
56
58
|
/**
|
|
57
|
-
*
|
|
58
|
-
* operations
|
|
59
|
+
* Builder for bitfield operations (`BITFIELD`), created by `bitmap.bitfield`.
|
|
60
|
+
* Add operations in order and execute them as a single command with
|
|
61
|
+
* {@link Bitfield.invoke}.
|
|
59
62
|
*/
|
|
60
63
|
export class Bitfield extends BitfieldRo {
|
|
61
|
-
/**
|
|
64
|
+
/**
|
|
65
|
+
* Sets the integer of type `type` at `offset` to `value` and returns its
|
|
66
|
+
* previous value.
|
|
67
|
+
*/
|
|
62
68
|
set(type, offset, value) {
|
|
63
69
|
set(this.c, type, offset, value);
|
|
64
70
|
return this;
|
|
65
71
|
}
|
|
66
|
-
/**
|
|
72
|
+
/**
|
|
73
|
+
* Adds `increment` to the integer of type `type` at `offset` and returns the
|
|
74
|
+
* new value.
|
|
75
|
+
*/
|
|
67
76
|
incrBy(type, offset, increment) {
|
|
68
77
|
incrBy(this.c, type, offset, increment);
|
|
69
78
|
return this;
|
|
70
79
|
}
|
|
71
|
-
/**
|
|
80
|
+
/**
|
|
81
|
+
* Sets the overflow behavior for subsequent `set` and `incrBy` operations.
|
|
82
|
+
*/
|
|
72
83
|
overflow(mode) {
|
|
73
84
|
overflow(this.c, mode);
|
|
74
85
|
return this;
|
|
75
86
|
}
|
|
76
87
|
}
|
|
77
|
-
/** A {@link BitfieldRo} being queued on a pipeline or
|
|
88
|
+
/** A {@link BitfieldRo} builder being queued on a pipeline or transaction. */
|
|
78
89
|
export class QueuedBitfieldRo {
|
|
79
90
|
queued;
|
|
80
91
|
c;
|
|
@@ -88,24 +99,32 @@ export class QueuedBitfieldRo {
|
|
|
88
99
|
get(this.c, type, offset);
|
|
89
100
|
return this;
|
|
90
101
|
}
|
|
91
|
-
/** Queues the operations
|
|
102
|
+
/** Queues the accumulated operations as a single command. */
|
|
92
103
|
queue() {
|
|
93
104
|
this.queued.push(this.c);
|
|
94
105
|
}
|
|
95
106
|
}
|
|
96
|
-
/** A {@link Bitfield} being queued on a pipeline or
|
|
107
|
+
/** A {@link Bitfield} builder being queued on a pipeline or transaction. */
|
|
97
108
|
export class QueuedBitfield extends QueuedBitfieldRo {
|
|
98
|
-
/**
|
|
109
|
+
/**
|
|
110
|
+
* Sets the integer of type `type` at `offset` to `value` and returns its
|
|
111
|
+
* previous value.
|
|
112
|
+
*/
|
|
99
113
|
set(type, offset, value) {
|
|
100
114
|
set(this.c, type, offset, value);
|
|
101
115
|
return this;
|
|
102
116
|
}
|
|
103
|
-
/**
|
|
117
|
+
/**
|
|
118
|
+
* Adds `increment` to the integer of type `type` at `offset` and returns the
|
|
119
|
+
* new value.
|
|
120
|
+
*/
|
|
104
121
|
incrBy(type, offset, increment) {
|
|
105
122
|
incrBy(this.c, type, offset, increment);
|
|
106
123
|
return this;
|
|
107
124
|
}
|
|
108
|
-
/**
|
|
125
|
+
/**
|
|
126
|
+
* Sets the overflow behavior for subsequent `set` and `incrBy` operations.
|
|
127
|
+
*/
|
|
109
128
|
overflow(mode) {
|
|
110
129
|
overflow(this.c, mode);
|
|
111
130
|
return this;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bitfield.js","sourceRoot":"","sources":["../../../storage/redis/bitfield.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,M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.js';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare function rawCommand(name: string, readOnly: boolean): Cmd;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* Builder for an arbitrary Redis command not covered by the typed command
|
|
13
|
+
* groups, created by `command()`. Pass arguments in order with
|
|
14
|
+
* {@link CommandInvocation.key} and {@link CommandInvocation.arg}, then execute
|
|
15
|
+
* with {@link CommandInvocation.invoke}.
|
|
15
16
|
*/
|
|
16
17
|
export declare class CommandInvocation {
|
|
17
18
|
private readonly t;
|
|
18
19
|
private readonly c;
|
|
19
20
|
/** @internal */
|
|
20
21
|
constructor(t: Target, c: Cmd);
|
|
21
|
-
/**
|
|
22
|
+
/** Appends a key argument, automatically applying the database's key prefix. */
|
|
22
23
|
key(key: string): this;
|
|
23
|
-
/**
|
|
24
|
+
/** Appends a non-key argument as-is. */
|
|
24
25
|
arg(arg: RedisArg): this;
|
|
25
26
|
/**
|
|
26
|
-
* Sends the command
|
|
27
|
-
*
|
|
28
|
-
*
|
|
27
|
+
* Sends the command and returns the server's reply. Note that keys returned
|
|
28
|
+
* by pop and stream-read commands have the database's key prefix stripped.
|
|
29
|
+
* Throws a `TypeError` with an explanation if the runtime rejects the
|
|
30
|
+
* command.
|
|
29
31
|
*/
|
|
30
32
|
invoke(): ReplyPromise;
|
|
31
33
|
}
|
|
32
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* Builder for queueing an arbitrary Redis command on a pipeline or transaction.
|
|
36
|
+
*/
|
|
33
37
|
export declare class QueuedCommandInvocation {
|
|
34
38
|
private readonly queued;
|
|
35
39
|
private readonly c;
|
|
36
40
|
/** @internal */
|
|
37
41
|
constructor(queued: Cmd[], c: Cmd);
|
|
38
|
-
/**
|
|
42
|
+
/** Appends a key argument, automatically applying the database's key prefix. */
|
|
39
43
|
key(key: string): this;
|
|
40
|
-
/**
|
|
44
|
+
/** Appends a non-key argument as-is. */
|
|
41
45
|
arg(arg: RedisArg): this;
|
|
42
|
-
/**
|
|
46
|
+
/** Appends the command to the pipeline or transaction queue. */
|
|
43
47
|
queue(): void;
|
|
44
48
|
}
|
|
45
49
|
//# sourceMappingURL=command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../storage/redis/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,YAAY,EAAC,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AACrC,OAAO,EAAC,GAAG,EAAE,KAAK,QAAQ,EAAC,MAAM,QAAQ,CAAC;AAE1C;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,GAAG,CAK/D;AAED
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../storage/redis/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,YAAY,EAAC,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AACrC,OAAO,EAAC,GAAG,EAAE,KAAK,QAAQ,EAAC,MAAM,QAAQ,CAAC;AAE1C;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,GAAG,CAK/D;AAED;;;;;GAKG;AACH,qBAAa,iBAAiB;IAG1B,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClB,OAAO,CAAC,QAAQ,CAAC,CAAC;IAHpB,gBAAgB;gBAEG,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,GAAG;IAGzB,gFAAgF;IAChF,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAKtB,wCAAwC;IACxC,GAAG,CAAC,GAAG,EAAE,QAAQ,GAAG,IAAI;IAKxB;;;;;OAKG;IACH,MAAM,IAAI,YAAY;CAWvB;AAED;;GAEG;AACH,qBAAa,uBAAuB;IAGhC,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,CAAC;IAHpB,gBAAgB;gBAEG,MAAM,EAAE,GAAG,EAAE,EACb,CAAC,EAAE,GAAG;IAGzB,gFAAgF;IAChF,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAKtB,wCAAwC;IACxC,GAAG,CAAC,GAAG,EAAE,QAAQ,GAAG,IAAI;IAKxB,gEAAgE;IAChE,KAAK,IAAI,IAAI;CAGd"}
|
|
@@ -13,9 +13,10 @@ export function rawCommand(name, readOnly) {
|
|
|
13
13
|
return c;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
16
|
+
* Builder for an arbitrary Redis command not covered by the typed command
|
|
17
|
+
* groups, created by `command()`. Pass arguments in order with
|
|
18
|
+
* {@link CommandInvocation.key} and {@link CommandInvocation.arg}, then execute
|
|
19
|
+
* with {@link CommandInvocation.invoke}.
|
|
19
20
|
*/
|
|
20
21
|
export class CommandInvocation {
|
|
21
22
|
t;
|
|
@@ -25,20 +26,21 @@ export class CommandInvocation {
|
|
|
25
26
|
this.t = t;
|
|
26
27
|
this.c = c;
|
|
27
28
|
}
|
|
28
|
-
/**
|
|
29
|
+
/** Appends a key argument, automatically applying the database's key prefix. */
|
|
29
30
|
key(key) {
|
|
30
31
|
this.c.key(key);
|
|
31
32
|
return this;
|
|
32
33
|
}
|
|
33
|
-
/**
|
|
34
|
+
/** Appends a non-key argument as-is. */
|
|
34
35
|
arg(arg) {
|
|
35
36
|
this.c.arg(arg);
|
|
36
37
|
return this;
|
|
37
38
|
}
|
|
38
39
|
/**
|
|
39
|
-
* Sends the command
|
|
40
|
-
*
|
|
41
|
-
*
|
|
40
|
+
* Sends the command and returns the server's reply. Note that keys returned
|
|
41
|
+
* by pop and stream-read commands have the database's key prefix stripped.
|
|
42
|
+
* Throws a `TypeError` with an explanation if the runtime rejects the
|
|
43
|
+
* command.
|
|
42
44
|
*/
|
|
43
45
|
invoke() {
|
|
44
46
|
return new ReplyPromise((async () => {
|
|
@@ -51,7 +53,9 @@ export class CommandInvocation {
|
|
|
51
53
|
})());
|
|
52
54
|
}
|
|
53
55
|
}
|
|
54
|
-
/**
|
|
56
|
+
/**
|
|
57
|
+
* Builder for queueing an arbitrary Redis command on a pipeline or transaction.
|
|
58
|
+
*/
|
|
55
59
|
export class QueuedCommandInvocation {
|
|
56
60
|
queued;
|
|
57
61
|
c;
|
|
@@ -60,17 +64,17 @@ export class QueuedCommandInvocation {
|
|
|
60
64
|
this.queued = queued;
|
|
61
65
|
this.c = c;
|
|
62
66
|
}
|
|
63
|
-
/**
|
|
67
|
+
/** Appends a key argument, automatically applying the database's key prefix. */
|
|
64
68
|
key(key) {
|
|
65
69
|
this.c.key(key);
|
|
66
70
|
return this;
|
|
67
71
|
}
|
|
68
|
-
/**
|
|
72
|
+
/** Appends a non-key argument as-is. */
|
|
69
73
|
arg(arg) {
|
|
70
74
|
this.c.arg(arg);
|
|
71
75
|
return this;
|
|
72
76
|
}
|
|
73
|
-
/**
|
|
77
|
+
/** Appends the command to the pipeline or transaction queue. */
|
|
74
78
|
queue() {
|
|
75
79
|
this.queued.push(this.c);
|
|
76
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../../storage/redis/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAE,YAAY,EAAC,MAAM,SAAS,CAAC;AAE5C,OAAO,EAAC,GAAG,EAAgB,MAAM,QAAQ,CAAC;AAE1C;;;;;GAKG;AACH,MAAM,UAAU,UAAU,CAAC,IAAY,EAAE,QAAiB;IACxD,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,QAAQ,CAAC,CAAC;IACvC,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC;IACb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