Skip to content

Commit

Permalink
update package json and knexfile
Browse files Browse the repository at this point in the history
  • Loading branch information
arielweinberger committed Dec 31, 2023
1 parent a4d8211 commit 3c4eb45
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 15 deletions.
5 changes: 3 additions & 2 deletions clickhouse/knexfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ const {
CLICKHOUSE_PASSWORD = "default",
} = process.env;

const str = `https://${CLICKHOUSE_USER}:${CLICKHOUSE_PASSWORD}@${CLICKHOUSE_HOST}:${CLICKHOUSE_PORT}/default`

const config: { [key: string]: Knex.Config } = {
default: {
client: clickhouse as any,
connection: () =>
`clickhouse://${CLICKHOUSE_USER}:${CLICKHOUSE_PASSWORD}@${CLICKHOUSE_HOST}:${CLICKHOUSE_PORT}/default` as any,
connection: () => str as any,
migrations: {
disableTransactions: true,
disableMigrationsListValidation: true,
Expand Down
8 changes: 4 additions & 4 deletions clickhouse/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clickhouse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"ts-node": "^10.9.2"
},
"dependencies": {
"@pezzo/knex-clickhouse-dialect": "^1.2.0"
"@pezzo/knex-clickhouse-dialect": "^1.3.0"
}
}
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@nestjs/swagger": "^7.1.12",
"@nx/nest": "16.6.0",
"@nx/next": "16.6.0",
"@pezzo/knex-clickhouse-dialect": "^1.2.0",
"@pezzo/knex-clickhouse-dialect": "^1.3.0",
"@pezzo/llm-toolkit": "^0.5.0",
"@prisma/client": "^5.1.1",
"@radix-ui/react-accordion": "^1.1.2",
Expand Down

0 comments on commit 3c4eb45

Please sign in to comment.