Add the Zerobus Typescript SDK#2
Conversation
69195bd to
b6fa05b
Compare
Signed-off-by: teodordelibasic-db <teodor.delibasic@databricks.com>
b6fa05b to
fe02bea
Compare
Signed-off-by: teodordelibasic-db <teodor.delibasic@databricks.com>
Signed-off-by: teodordelibasic-db <teodor.delibasic@databricks.com>
| @@ -0,0 +1,233 @@ | |||
| # Zerobus SDK Examples | |||
|
|
|||
| This directory contains example applications demonstrating the Zerobus Ingest SDK for TypeScript. | |||
There was a problem hiding this comment.
Maybe add a section about how the table looks like. Something like this:
- Create a Databricks Table
First, create a table in your Databricks workspace using the following SQL:
CREATE TABLE catalog.schema.air_quality (
device_name STRING,
temp INT,
humidity BIGINT
);
Replace catalog.schema.air_quality with your actual catalog, schema, and table name. Note: This schema matches the examples. You can modify it for your use case, but make sure to update the example code accordingly.
There was a problem hiding this comment.
Done, thanks
|
How do I run tests? |
test/unit.test.ts
Outdated
| import { describe, it, before } from 'node:test'; | ||
| import * as assert from 'node:assert'; | ||
| import { ZerobusSdk, RecordType, TableProperties, StreamConfigurationOptions } from '../index'; | ||
| import { HeadersProvider } from '../src/providers'; |
There was a problem hiding this comment.
Is this generated? In src folder i see only headers_provider.ts?
There was a problem hiding this comment.
Hm I fixed it, not sure how it worked before
| "version": "0.1.0", | ||
| "description": "TypeScript/Node.js SDK for streaming data ingestion into Databricks Delta tables using Zerobus", |
There was a problem hiding this comment.
Here you have version 0.1.0. but in Cargo.toml you have 0.0.1
There was a problem hiding this comment.
Yeah fixed, thanks...
Signed-off-by: teodordelibasic-db <teodor.delibasic@databricks.com>
Signed-off-by: teodordelibasic-db <teodor.delibasic@databricks.com>
Signed-off-by: teodordelibasic-db <teodor.delibasic@databricks.com>
Signed-off-by: teodordelibasic-db <teodor.delibasic@databricks.com>
Signed-off-by: teodordelibasic-db <teodor.delibasic@databricks.com>
Signed-off-by: teodordelibasic-db <teodor.delibasic@databricks.com>
Signed-off-by: teodordelibasic-db <teodor.delibasic@databricks.com>
Signed-off-by: teodordelibasic-db <teodor.delibasic@databricks.com>
Signed-off-by: teodordelibasic-db <teodor.delibasic@databricks.com>
Adds all the production code which wraps the Rust SDK and creates NAPI bindings for Typescript, tests, examples, accompanying files for licensing, contributing, etc.