Skip to content

Commit 90121d1

Browse files
jl4nzchristian-bromann
authored andcommitted
fix(@langchain/community) create index aurora dsql
Revert to skip test aurora-dsql closes #8486
1 parent e90bc0a commit 90121d1

File tree

6 files changed

+8123
-10079
lines changed

6 files changed

+8123
-10079
lines changed

.changeset/kind-tickle-bear.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@langchain/community": patch
3+
---
4+
5+
create index aurora dsql

examples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"author": "LangChain",
2525
"license": "MIT",
2626
"dependencies": {
27-
"@aws-sdk/dsql-signer": "^3.738.0",
27+
"@aws-sdk/dsql-signer": "^3.844.0",
2828
"@azure/identity": "^4.2.1",
2929
"@browserbasehq/stagehand": "^1.3.0",
3030
"@clickhouse/client": "^0.2.5",

libs/langchain-community/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"@aws-sdk/client-sagemaker-runtime": "^3.749.0",
5959
"@aws-sdk/client-sfn": "^3.749.0",
6060
"@aws-sdk/credential-provider-node": "^3.749.0",
61-
"@aws-sdk/dsql-signer": "^3.738.0",
61+
"@aws-sdk/dsql-signer": "^3.844.0",
6262
"@aws-sdk/types": "^3.734.0",
6363
"@azure/search-documents": "^12.0.0",
6464
"@azure/storage-blob": "^12.15.0",

libs/langchain-community/src/stores/message/aurora_dsql.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export class AuroraDsqlChatMessageHistory extends BaseListChatMessageHistory {
114114

115115
const query = `
116116
CREATE TABLE IF NOT EXISTS ${this.tableName} (
117-
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
117+
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
118118
created_at timestamp default current_timestamp,
119119
session_id VARCHAR(255) NOT NULL,
120120
message TEXT NOT NULL
@@ -138,7 +138,7 @@ export class AuroraDsqlChatMessageHistory extends BaseListChatMessageHistory {
138138
}
139139

140140
private async createIndex() {
141-
const query = `CREATE INDEX IF NOT EXISTS idx_on_session_id on ${this.tableName} (session_id);`;
141+
const query = `CREATE INDEX ASYNC IF NOT EXISTS idx_on_session_id on ${this.tableName} (session_id);`;
142142
await this.pool.query(query);
143143
}
144144

libs/langchain-community/src/stores/tests/aurora_dsql.int.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async function getAdminAuthToken() {
1515
credentials: {
1616
accessKeyId: process.env.AWS_ACCESS_KEY_ID!,
1717
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY!,
18-
// sessionToken: process.env.AWS_SESSION_TOKEN!
18+
// sessionToken: process.env.AWS_SESSION_TOKEN!,
1919
},
2020
});
2121
return await signer.getDbConnectAdminAuthToken();

0 commit comments

Comments
 (0)