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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInserts a row intoAI_SESSIONor updates the existing one, refreshing onlyexpires_atandmetadata:created_atkeeps its value andevent_versionis never touched.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.ai.session.jdbc.JdbcSessionRepositoryDialect
getInsertSessionIfAbsentSql
-
Constructor Details
-
MysqlJdbcSessionRepositoryDialect
public MysqlJdbcSessionRepositoryDialect()
-
-
Method Details
-
getUpsertSessionSql
Description copied from interface:JdbcSessionRepositoryDialectInserts a row intoAI_SESSIONor updates the existing one, refreshing onlyexpires_atandmetadata:created_atkeeps its value andevent_versionis never touched. Parameters, in order:id,created_at,expires_at,metadata.- Specified by:
getUpsertSessionSqlin interfaceJdbcSessionRepositoryDialect
-