donobu
Version:
Create browser automations with an LLM agent and replay them as Playwright scripts.
23 lines • 944 B
TypeScript
import type Database from 'better-sqlite3';
import type { EnvPersistence } from './EnvPersistence';
/**
* SQLite-backed implementation of {@link EnvPersistence}.
*
* Stores flow environment data in the `environment_data` table (columns:
* `name TEXT PRIMARY KEY`, `value TEXT NOT NULL`). Used as the `"LOCAL"`
* persistence layer when present in `PERSISTENCE_PRIORITY`.
*/
export declare class EnvPersistenceSqlite implements EnvPersistence {
private readonly db;
private constructor();
static create(db: Database.Database): Promise<EnvPersistenceSqlite>;
setEnvironmentDatum(key: string, value: string): Promise<void>;
deleteEnvironmentDatum(key: string): Promise<void>;
getEnvironmentDatum(key: string): Promise<string | undefined>;
/**
* Get all environment data.
*/
getEnvironmentData(): Promise<Record<string, string>>;
close(): void;
}
//# sourceMappingURL=EnvPersistenceSqlite.d.ts.map