PostgresSnapshotSpec
public class PostgresSnapshotSpec extends RemoteSnapshotSpec
源码Source
io/agentscope/extensions/postgresql/snapshot/PostgresSnapshotSpec.java:27–36Postgres 快照规格,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.extensions.postgresql.snapshot 包,继承自 RemoteSnapshotSpec。核心成员包括 PostgresSnapshotSpec。
Convenience io.agentscope.harness.agent.sandbox.snapshot.SandboxSnapshotSpec
for PostgreSQL-backed snapshot storage.
Stores sandbox workspace tar archives as BYTEAs in a database table.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public PostgresSnapshotSpec(DataSource dataSource) | 初始化 `PostgresSnapshotSpec` 实例。 Creates a new instance. |
public PostgresSnapshotSpec(DataSource dataSource, String tableName) | 初始化 `PostgresSnapshotSpec` 实例。 Creates a new instance. |
构造器详情Constructor Detail
PostgresSnapshotSpec
public PostgresSnapshotSpec(DataSource dataSource)
初始化 PostgresSnapshotSpec 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
dataSource | DataSource | 数据来源(类型 `DataSource`)。The data source. |
源码Source
io/agentscope/extensions/postgresql/snapshot/PostgresSnapshotSpec.java:29–31PostgresSnapshotSpec
public PostgresSnapshotSpec(DataSource dataSource, String tableName)
初始化 PostgresSnapshotSpec 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
dataSource | DataSource | 数据来源(类型 `DataSource`)。The data source. |
tableName | String | table 名称(类型 `String`)。The table name. |
源码Source
io/agentscope/extensions/postgresql/snapshot/PostgresSnapshotSpec.java:33–35