H2JdbcStoreDialect
public class H2JdbcStoreDialect implements JdbcStoreDialect
源码Source
io/agentscope/extensions/mysql/store/H2JdbcStoreDialect.java:24–61H 2 JDBC 存储 Dialect,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.extensions.mysql.store 包,实现 JdbcStoreDialect。核心成员包括 getCreateTableSql、getUpsertSql、getInsertSql、getCasUpdateSql。
H2 dialect for JdbcStore.
Uses the PostgreSQL-compatible ON CONFLICT ... DO UPDATE syntax, supported by H2
2.x. Earlier H2 versions require the legacy MERGE INTO syntax and are not supported.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getCreateTableSql() | 获取 `getCreateTableSql`。 Returns the create table sql. |
public String getUpsertSql() | 获取 `getUpsertSql`。 Returns the upsert sql. |
public String getInsertSql() | 获取插入 SQL。 Returns the insert sql. |
public String getCasUpdateSql() | 获取 `getCasUpdateSql`。 Returns the cas update sql. |
方法详情Method Detail
getCreateTableSql
public String getCreateTableSql()
获取 getCreateTableSql。
Returns the create table sql.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/mysql/store/H2JdbcStoreDialect.java:26–36getUpsertSql
public String getUpsertSql()
获取 getUpsertSql。
Returns the upsert sql.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/mysql/store/H2JdbcStoreDialect.java:38–48getInsertSql
public String getInsertSql()
获取插入 SQL。
Returns the insert sql.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/mysql/store/H2JdbcStoreDialect.java:50–54getCasUpdateSql
public String getCasUpdateSql()
获取 getCasUpdateSql。
Returns the cas update sql.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/mysql/store/H2JdbcStoreDialect.java:56–60