Package org.springframework.ai.session.jdbc
@NullMarked
package org.springframework.ai.session.jdbc
JDBC-backed implementation of
SessionRepository.
Entry point: JdbcSessionRepository.
DDL scripts for each supported database are available on the classpath at
org/springframework/ai/session/jdbc/schema-{db}.sql (e.g.
schema-postgresql.sql, schema-h2.sql, schema-mysql.sql).
-
ClassDescriptionThe dialect of H2.The
SessionRepositoryon a relational database:AI_SESSION(id, expiry, metadata JSON, event version),AI_SESSION_INDEX(the indexed metadata attributes, one row per attribute) andAI_SESSION_EVENT(the log, ordered by a database-assignedseq).The SQL that differs between databases, forJdbcSessionRepository: the upsert and the insert-if-absent of a session.The dialect of MySQL and MariaDB.The dialect of PostgreSQL.