Skip to content
ankohPublic

About

Unofficial SQL client for Hyper and Salesforce Data 360

Topics

Resources

Stars

38 stars

Watchers

1 watching

Forks

Latest commit

 

History

9,772 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Building

Every build and test is a Bazel target, see docs/agents/build_bazel_targets.md.

# Vite dev server for the browser with HMR. It runs ibazel, the watcher of Bazel,
# in a separate output base.
pnpm dev

# For Electron renderer HMR, run these in separate terminals.
pnpm dev --mode native
bazel run //packages/dashql-native:dev
# Override DASHQL_ELECTRON_RENDERER_URL if Vite uses another loopback HTTP origin.

# If you need demangled wasm stacktraces, run with
pnpm dev:debug

# We bundle the web app with two routers
# - '/'-paths for Cloudflare Pages -> :pages
# - '#/'-paths for native apps -> :reloc
bazel build //packages/dashql-app:pages
bazel build //packages/dashql-app:reloc

# Astro dev server for the website and blog (dashql.org) on http://localhost:9003.
# It runs from the node_modules of the workspace, run `pnpm install` once first.
bazel run //packages/dashql-org:dev
# Static build of the website for Cloudflare Pages
bazel build //packages/dashql-org:pages_deploy

# The native app can be cross-compiled for arm and x86
bazel run //packages/dashql-native:mac_package_arm64
bazel run //packages/dashql-native:mac_package_x86_64

# Test everything
bazel test //...

# Perf test a workbook: import a .dashql file into the app in Chromium and print the perf marks,
# the long frames and the renders per component (see "Perf marks" in docs/design/dashql_runtime.md)
bazel run //packages/dashql-app:perf_workbook -- path/to/workbook.dashql

# Many tests are backed by snapshots: tests/snapshots/**/*.tpl.yaml generate the *.yaml next to them.
# Update all categories after intentional changes, the targets of single categories are in
# docs/agents/build_bazel_targets.md
bazel run //tests/snapshots:update

# Upgrade the Rust crates declared in bazel/crates/*.MODULE.bazel
bazel run //scripts:repin_crates -- full

# Generate rust-project.json for rust-analyzer in IDEs (see docs/agents/rust_analyzer.md)
bazel run //scripts:rust_project

# Fetch test datasets
bazel build //tools/datasets:datasets
# Upload missing test datasets to data.dashql.app (requires R2 key)
bazel run //tools/datasets:sync

# Build and test the npm packages
bazel build --config=release //packages/dashql:npm_tarball //packages/dashql-react:npm_tarball
bazel test --config=release //packages/dashql:all //packages/dashql-react:all


Continuous Deployment

  • We're continuously deploying main to dashql.app
    • //packages/dashql-app:pages is published to Cloudflare Pages
    • We use aggressive caching with cache busting
    • Every release tag deploys the same web app to stable.dashql.app
    • Any commit pushed to the branch dev deploys to dev.dashql.app, for integrations under development
  • Native apps and update bundles are published to get.dashql.app
  • We're maintaining release manifests under get.dashql.app/stable.json and get.dashql.app/latest.json
  • The npm packages @akohn/dashql and @akohn/dashql-react are published for the branches main, stable, dev
  • Hosted test datasets are published to data.dashql.app (R2 bucket dashql-data)
    • Built hermetically by //tools/datasets (hash-pinned sources -> DuckDB CLI or Hyper) and mirrored with bazel run //tools/datasets:sync
    • Immutable versioned paths data.dashql.app/<dataset>/v<version>/<file>.parquet, plus a mutable data.dashql.app/index.json registry
  • Our builds heavily rely on a bazel-remote cache server under bazel-cache.dashql.app
  • You can see bazel cache statistics here

About

Unofficial SQL client for Hyper and Salesforce Data 360

Topics

Resources

Stars

38 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages