Skip to content

Commit

Permalink
Update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Dec 28, 2024
1 parent 21ccc76 commit 8240cbc
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 59 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

## Version History

### v24.2.0

- :rocket: Allow passing generic Drizzle Options

### v24.1.0

- :arrow_up: Update Drizzle to latest version
Expand Down
6 changes: 4 additions & 2 deletions lib/pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { sql } from 'drizzle-orm';
import { PgDatabase, PgDialect } from 'drizzle-orm/pg-core';
import { migrate } from 'drizzle-orm/postgres-js/migrator'
import { PostgresJsSession } from 'drizzle-orm/postgres-js'
import type { PostgresJsQueryResultHKT } from 'drizzle-orm/postgres-js';
import type { PostgresJsQueryResultHKT, PostgresJsSessionOptions } from 'drizzle-orm/postgres-js';
import {
createTableRelationsHelpers,
extractTablesRelationalConfig
Expand All @@ -25,6 +25,7 @@ export default class Pool<TSchema extends Record<string, unknown> = Record<strin

constructor(connstr: string, config: {
schema: TSchema
options?: PostgresJsSessionOptions,
ssl?: {
rejectUnauthorized?: boolean;
};
Expand All @@ -47,7 +48,8 @@ export default class Pool<TSchema extends Record<string, unknown> = Record<strin
}

const dialect = new PgDialect();
const session = new PostgresJsSession(client, dialect, schema)
const session = new PostgresJsSession(client, dialect, schema, config.options);

super(
dialect,
session,
Expand Down
114 changes: 57 additions & 57 deletions package-lock.json

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

0 comments on commit 8240cbc

Please sign in to comment.