Class MysqlJdbcSessionRepositoryDialect

java.lang.Object
org.springframework.ai.session.jdbc.MysqlJdbcSessionRepositoryDialect
All Implemented Interfaces:
JdbcSessionRepositoryDialect

public class MysqlJdbcSessionRepositoryDialect extends Object implements JdbcSessionRepositoryDialect
The dialect of MySQL and MariaDB.
Since:
2.1.0
Author:
Christian Tzolov
  • Constructor Details

    • MysqlJdbcSessionRepositoryDialect

      public MysqlJdbcSessionRepositoryDialect()
  • Method Details

    • getUpsertSessionSql

      public String getUpsertSessionSql()
      Description copied from interface: JdbcSessionRepositoryDialect
      Inserts a row into AI_SESSION or updates the existing one, refreshing only expires_at and metadata: created_at keeps its value and event_version is never touched. Parameters, in order: id, created_at, expires_at, metadata.
      Specified by:
      getUpsertSessionSql in interface JdbcSessionRepositoryDialect