Interface for a persistence adapter. Adapters are responsible for interacting with the underlying data store (e.g., database, API) to save generated objects.
Persists a single generated object to the data store.
The object to persist.
A promise that resolves with the persisted object, including any properties assigned by the database (e.g., auto-generated IDs).
Persists multiple generated objects to the data store in a batch.
An array of objects to persist.
A promise that resolves with an array of the persisted objects, including any properties assigned by the database.
Interface for a persistence adapter. Adapters are responsible for interacting with the underlying data store (e.g., database, API) to save generated objects.