@marimo-team/islands 0.19.8-dev31 → 0.19.8-dev32

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/dist/main.js CHANGED
@@ -73203,7 +73203,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
73203
73203
  return Logger.warn("Failed to get version from mount config"), null;
73204
73204
  }
73205
73205
  }
73206
- const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.19.8-dev31"), showCodeInRunModeAtom = atom(true);
73206
+ const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.19.8-dev32"), showCodeInRunModeAtom = atom(true);
73207
73207
  atom(null);
73208
73208
  var import_compiler_runtime$88 = require_compiler_runtime();
73209
73209
  function useKeydownOnElement(e, r) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/islands",
3
- "version": "0.19.8-dev31",
3
+ "version": "0.19.8-dev32",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -461,6 +461,21 @@ engine = clickhouse_connect.get_client(
461
461
  )"
462
462
  `;
463
463
 
464
+ exports[`generateDatabaseCode > edge cases > clickhouse with proxy_path 1`] = `
465
+ "import clickhouse_connect
466
+ import os
467
+
468
+ _password = os.environ.get("CLICKHOUSE_PASSWORD", "pass")
469
+ engine = clickhouse_connect.get_client(
470
+ host="localhost",
471
+ user="user",
472
+ secure=False,
473
+ port=8123,
474
+ password=_password,
475
+ proxy_path="/clickhouse",
476
+ )"
477
+ `;
478
+
464
479
  exports[`generateDatabaseCode > edge cases > duckdb with relative path 1`] = `
465
480
  "import sqlmodel
466
481
 
@@ -532,6 +532,14 @@ describe("generateDatabaseCode", () => {
532
532
  },
533
533
  "clickhouse_connect",
534
534
  ],
535
+ [
536
+ "clickhouse with proxy_path",
537
+ {
538
+ ...clickhouseConnection,
539
+ proxy_path: "/clickhouse",
540
+ },
541
+ "clickhouse_connect",
542
+ ],
535
543
  [
536
544
  "timeplus with no port",
537
545
  {
@@ -412,6 +412,9 @@ class ClickHouseGenerator extends CodeGenerator<"clickhouse_connect"> {
412
412
  ? this.secrets.print("port", this.connection.port)
413
413
  : undefined,
414
414
  password: this.connection.password ? password : undefined,
415
+ proxy_path: this.connection.proxy_path
416
+ ? this.secrets.print("proxy_path", this.connection.proxy_path)
417
+ : undefined,
415
418
  };
416
419
 
417
420
  return dedent(`
@@ -267,6 +267,15 @@ export const ClickhouseConnectionSchema = z
267
267
  .boolean()
268
268
  .default(false)
269
269
  .describe(FieldOptions.of({ label: "Use HTTPs" })),
270
+ proxy_path: z
271
+ .string()
272
+ .optional()
273
+ .describe(
274
+ FieldOptions.of({
275
+ label: "Proxy Path",
276
+ placeholder: "/clickhouse",
277
+ }),
278
+ ),
270
279
  })
271
280
  .describe(FieldOptions.of({ direction: "two-columns" }));
272
281