Class JdbcStore.Builder

java.lang.Object
io.agentscope.extensions.jdbc.store.JdbcStore.Builder
Enclosing class:
JdbcStore

public static final class JdbcStore.Builder extends Object
Builder for JdbcStore.
  • Method Details

    • dialect

      public JdbcStore.Builder dialect(StoreDialect dialect)
      Sets the store dialect (required).
    • objectMapper

      public JdbcStore.Builder objectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      Sets a custom Jackson ObjectMapper.
    • initializeSchema

      public JdbcStore.Builder initializeSchema(boolean initializeSchema)
      When true, runs the dialect's CREATE TABLE during construction.
    • build

      public JdbcStore build()
      Builds the JdbcStore.