File tree Expand file tree Collapse file tree 6 files changed +955
-28
lines changed Expand file tree Collapse file tree 6 files changed +955
-28
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @langchain/community " : patch
3+ ---
4+
5+ create index aurora dsql
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments