@dbx-tools/databricks-zerobus 0.9.131 → 0.9.132
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 +10 -9
- package/index.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
# @dbx-tools/databricks-zerobus
|
|
2
2
|
|
|
3
|
-
Region-aware Zerobus ingest helpers for Databricks workspaces.
|
|
4
|
-
|
|
5
3
|
Create a Zerobus SDK client and open ingest streams without constructing the
|
|
6
|
-
region-specific endpoint yourself.
|
|
4
|
+
region-specific Databricks endpoint yourself.
|
|
7
5
|
|
|
8
|
-
|
|
6
|
+
The package:
|
|
9
7
|
|
|
10
8
|
- Databricks workspace URL/id discovery through
|
|
11
|
-
[
|
|
9
|
+
[@dbx-tools/databricks](../databricks).
|
|
12
10
|
- Cloud/region-aware Zerobus endpoint construction.
|
|
13
11
|
- Credential lookup with Zerobus-prefixed env vars and Databricks client-id
|
|
14
12
|
fallbacks.
|
|
15
13
|
- Thin wrapper around the Zerobus SDK so callers can still use SDK-native stream
|
|
16
14
|
methods after setup.
|
|
17
15
|
|
|
18
|
-
## Create
|
|
16
|
+
## Create a Zerobus SDK client
|
|
19
17
|
|
|
20
18
|
```ts
|
|
21
19
|
import { zerobus } from "@dbx-tools/databricks-zerobus";
|
|
@@ -24,12 +22,15 @@ const sdk = await zerobus.createSdk();
|
|
|
24
22
|
```
|
|
25
23
|
|
|
26
24
|
`createSdk()` resolves the current Databricks workspace URL/id, detects its cloud
|
|
27
|
-
region through [
|
|
25
|
+
region through [@dbx-tools/databricks](../databricks), and constructs the
|
|
28
26
|
Zerobus endpoint for that region.
|
|
29
27
|
|
|
30
|
-
## Open
|
|
28
|
+
## Open an ingest stream
|
|
31
29
|
|
|
32
30
|
```ts
|
|
31
|
+
import { zerobus } from "@dbx-tools/databricks-zerobus";
|
|
32
|
+
|
|
33
|
+
const sdk = await zerobus.createSdk();
|
|
33
34
|
const stream = await zerobus.createStream(sdk, "main.default.events");
|
|
34
35
|
|
|
35
36
|
await stream.ingestRecord({
|
|
@@ -52,4 +53,4 @@ client and stream endpoint, then leaves ingestion semantics to Zerobus.
|
|
|
52
53
|
- `zerobus` - `createSdk()` and `createStream()`.
|
|
53
54
|
|
|
54
55
|
This package has no AppKit dependency. Workspace and cloud detection are
|
|
55
|
-
delegated to [
|
|
56
|
+
delegated to [@dbx-tools/databricks](../databricks).
|
package/index.ts
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
// Hand edits are overwritten on the next watch; this file is read-only.
|
|
4
4
|
|
|
5
5
|
export const PACKAGE_IDENTIFIER = "@dbx-tools/databricks-zerobus";
|
|
6
|
-
export const PACKAGE_VERSION = "0.9.
|
|
6
|
+
export const PACKAGE_VERSION = "0.9.132";
|
|
7
7
|
export * as zerobus from "./src/zerobus.ts";
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
// Regenerated from the exporting modules in ./src.
|
|
3
3
|
// Hand edits are overwritten on the next watch; this file is read-only.
|
|
4
4
|
export const PACKAGE_IDENTIFIER = "@dbx-tools/databricks-zerobus";
|
|
5
|
-
export const PACKAGE_VERSION = "0.9.
|
|
5
|
+
export const PACKAGE_VERSION = "0.9.132";
|
|
6
6
|
export * as zerobus from "./src/zerobus.js";
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSwyQ0FBMkM7QUFDM0MsbURBQW1EO0FBQ25ELHdFQUF3RTtBQUV4RSxNQUFNLENBQUMsTUFBTSxrQkFBa0IsR0FBRywrQkFBK0IsQ0FBQztBQUNsRSxNQUFNLENBQUMsTUFBTSxlQUFlLEdBQUcsU0FBUyxDQUFDO0FBQ3pDLE9BQU8sS0FBSyxPQUFPLE1BQU0sa0JBQWtCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBHRU5FUkFURUQgYnkgcHJvamVuIHdhdGNoIC0gRE8gTk9UIEVESVQuXG4vLyBSZWdlbmVyYXRlZCBmcm9tIHRoZSBleHBvcnRpbmcgbW9kdWxlcyBpbiAuL3NyYy5cbi8vIEhhbmQgZWRpdHMgYXJlIG92ZXJ3cml0dGVuIG9uIHRoZSBuZXh0IHdhdGNoOyB0aGlzIGZpbGUgaXMgcmVhZC1vbmx5LlxuXG5leHBvcnQgY29uc3QgUEFDS0FHRV9JREVOVElGSUVSID0gXCJAZGJ4LXRvb2xzL2RhdGFicmlja3MtemVyb2J1c1wiO1xuZXhwb3J0IGNvbnN0IFBBQ0tBR0VfVkVSU0lPTiA9IFwiMC45LjEzMlwiO1xuZXhwb3J0ICogYXMgemVyb2J1cyBmcm9tIFwiLi9zcmMvemVyb2J1cy50c1wiO1xuIl19
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@databricks/zerobus-ingest-sdk": "^1.1.0",
|
|
27
|
-
"@dbx-tools/databricks": "^0.9.
|
|
27
|
+
"@dbx-tools/databricks": "^0.9.132"
|
|
28
28
|
},
|
|
29
29
|
"main": "./lib/index.js",
|
|
30
30
|
"license": "Apache-2.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"./package.json": "./package.json"
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"version": "0.9.
|
|
51
|
+
"version": "0.9.132",
|
|
52
52
|
"types": "./lib/index.d.ts",
|
|
53
53
|
"dbxToolsConfig": {
|
|
54
54
|
"tags": [
|