Skip to content

Commit

Permalink
set client as read only
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisCarriere committed Oct 25, 2023
1 parent 2c44148 commit 59d3ac9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/clickhouse/createClient.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { createClient } from "@clickhouse/client-web";
import { ping } from "./ping";
import { APP_NAME, config } from "../config";
import { ping } from "./ping.js";
import { APP_NAME, config } from "../config.js";

const client = createClient({
...config,
clickhouse_settings: {
allow_experimental_object_type: 1,
readonly: "1",
},
application: APP_NAME,
})
Expand Down

0 comments on commit 59d3ac9

Please sign in to comment.