Skip to content

Commit 5faa309

Browse files
committed
feat(napi): bundle SEA kernel parity surface
Signed-off-by: Madhavendra Rathore <madhavendra.rathore@databricks.com>
1 parent 5f5a908 commit 5faa309

23 files changed

Lines changed: 2966 additions & 137 deletions

‎.github/workflows/napi-checks.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ concurrency:
4949

5050
permissions:
5151
contents: read
52+
# Required for the OIDC token exchange that the
53+
# `.github/actions/setup-jfrog` composite uses to authenticate
54+
# against the JFrog cargo proxy. See go/hardened-gha.
55+
id-token: write
5256

5357
defaults:
5458
run:
@@ -95,6 +99,10 @@ jobs:
9599
steps:
96100
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
97101

102+
- uses: ./.github/actions/setup-jfrog
103+
with:
104+
cargo: "true"
105+
98106
- uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2
99107
with:
100108
components: rustfmt, clippy

‎napi/Cargo.lock‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎napi/Cargo.toml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@ arrow-ipc = "57"
9797
# `src/error.rs` without bouncing through a hand-rolled escaper.
9898
serde_json = "1"
9999

100+
# Date/time parsing for the params codec. Already a kernel transitive
101+
# dep (the kernel's `TypedValue::Date`/`Timestamp{,Ntz,Ltz}` variants
102+
# wrap `chrono` types directly); declared here so `params.rs` can name
103+
# `NaiveDate` / `NaiveDateTime` / `DateTime<Utc>` for literal parsing.
104+
# Version kept in lock-step with the kernel's `chrono` dep.
105+
chrono = { version = "0.4", default-features = false, features = ["clock"] }
106+
100107
[build-dependencies]
101108
napi-build = "2"
102109

‎napi/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "@databricks/sql-kernel-linux-x64-gnu",
2+
"name": "@databricks/sql-kernel",
33
"version": "0.1.0",
4-
"description": "Databricks SQL Kernel — Node.js native binding (linux-x64-gnu).",
4+
"description": "Databricks SQL Kernel — Node.js native binding.",
55
"main": "index.js",
66
"types": "index.d.ts",
77
"files": [

0 commit comments

Comments
 (0)