Skip to content

Commit

Permalink
Temporarily disabled incompatible type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Sukairo-02 committed Sep 13, 2024
1 parent 0b87302 commit 1800fdd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions drizzle-orm/src/aws-data-api/pg/driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export function drizzle<TSchema extends Record<string, unknown> = Record<string,
}

const session = new AwsDataApiSession(client, dialect, schema, { ...config, logger }, undefined);
// @ts-ignore
const db = new AwsDataApiPgDatabase(dialect, session, schema as any);
(<any> db).$client = client;

Expand Down
4 changes: 4 additions & 0 deletions drizzle-orm/src/aws-data-api/pg/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ export class AwsDataApiSession<
};
}

// @ts-ignore
prepareQuery<
T extends PreparedQueryConfig & {
values: AwsDataApiPgQueryResult<unknown[]>;
Expand Down Expand Up @@ -210,6 +211,8 @@ export class AwsDataApiSession<
undefined,
false,
undefined,
undefined,
// @ts-ignore
this.transactionId,
).execute();
}
Expand All @@ -220,6 +223,7 @@ export class AwsDataApiSession<
): Promise<T> {
const { transactionId } = await this.client.send(new BeginTransactionCommand(this.rawQuery));
const session = new AwsDataApiSession(this.client, this.dialect, this.schema, this.options, transactionId);
// @ts-ignore
const tx = new AwsDataApiTransaction<TFullSchema, TSchema>(this.dialect, session, this.schema);
if (config) {
await tx.setTransaction(config);
Expand Down

0 comments on commit 1800fdd

Please sign in to comment.