(there was a time where it didn't exist, but there were 3rd party options on github in the meanwhile
(there was a time where it didn't exist, but there were 3rd party options on github in the meanwhile)
export?
wrangler d1 pull command, that exports the DB into the correct place in the .wrangler directory so you can use it locally? You can do that manually rn, but it isn't the most ergonomic thing to dowrangler d1 pullexports.wrangler{
"result": null,
"success": false,
"errors": [
{
"code": 7500,
"message": "Internal error: failed to get DB size and num_tables"
}
],
"messages": []
}const memory = new BufferMemory({
returnMessages: true,
chatHistory: new CloudflareD1MessageHistory({
tableName: 'stored_message',
sessionId: 'example2',
database: env.DB,
}),
});
await memory.saveContext({ input: 'My name is TOMER' }, { output: 'Ok got it' });