Skip to content

Add the Zerobus Typescript SDK#2

Merged
teodordelibasic-db merged 14 commits intomainfrom
add-typescript-sdk
Dec 23, 2025
Merged

Add the Zerobus Typescript SDK#2
teodordelibasic-db merged 14 commits intomainfrom
add-typescript-sdk

Conversation

@teodordelibasic-db
Copy link
Contributor

@teodordelibasic-db teodordelibasic-db commented Dec 22, 2025

Adds all the production code which wraps the Rust SDK and creates NAPI bindings for Typescript, tests, examples, accompanying files for licensing, contributing, etc.

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>
@@ -0,0 +1,233 @@
# Zerobus SDK Examples

This directory contains example applications demonstrating the Zerobus Ingest SDK for TypeScript.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a section about how the table looks like. Something like this:

  1. 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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thanks

@elenagaljak-db
Copy link

How do I run tests?

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';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this generated? In src folder i see only headers_provider.ts?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm I fixed it, not sure how it worked before

Comment on lines +3 to +4
"version": "0.1.0",
"description": "TypeScript/Node.js SDK for streaming data ingestion into Databricks Delta tables using Zerobus",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you have version 0.1.0. but in Cargo.toml you have 0.0.1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
elenagaljak-db
elenagaljak-db previously approved these changes Dec 23, 2025
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>
@teodordelibasic-db teodordelibasic-db added this pull request to the merge queue Dec 23, 2025
Merged via the queue into main with commit b32a283 Dec 23, 2025
9 checks passed
@teodordelibasic-db teodordelibasic-db deleted the add-typescript-sdk branch December 23, 2025 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments