Skip to content

Introduce default methods for JdbcChatMemoryRepositoryDialect #3204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

quaff
Copy link
Contributor

@quaff quaff commented May 16, 2025

No description provided.

@markpollack
Copy link
Member

Thanks, we will address this in 1.0.x release.

@markpollack markpollack added this to the 1.0.x milestone May 16, 2025
*/
public interface JdbcChatMemoryRepositoryDialect {

/**
* Returns the SQL to fetch messages for a conversation, ordered by timestamp, with
* limit.
*/
String getSelectMessagesSql();
default String getSelectMessagesSql() {
return "SELECT content, type FROM SPRING_AI_CHAT_MEMORY WHERE conversation_id = ? ORDER BY "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed the table name SPRING_AI_CHAT_MEMORY is in uppercase. Is there a specific reason for this, or would it be okay to change it to lowercase (e.g., spring_ai_chat_memory) to improve readability?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants