DVPreviewAdapter class abstract interface

What a deployment platform must do to host previews.

Whether it can at all is the adapter's answer, the same way traffic weighting is in Backend Release Management. An adapter that cannot create an isolated environment on demand says so through canHostPreviews rather than implementing something that shares production's database.

Properties

canBranchDatabases → bool
Whether the provider can branch a database (Neon, PlanetScale).
no setter
canHostPreviews → bool
no setter
hashCode → int
The hash code for this object.
no setterinherited
name → String
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

branchDatabase(String database, {required String from}) → Future<void>
Branches from into a new database named database.
createBucket(String bucket) → Future<void>
createDatabase(String database) → Future<void>
Creates an empty database. Throws when one of that name exists.
deploy(DVPreviewDeployment deployment) → Future<String>
Deploys, or redeploys, and returns the preview's URL.
destroyBucket(String bucket) → Future<void>
destroyDatabase(String database) → Future<void>
destroyDeployment(DVPreviewIdentity identity) → Future<void>
exists(DVPreviewResource kind, String name) → Future<bool>
Whether the resource still exists, asked of the platform rather than remembered: a destroy call returning is not the resource being gone. A deployment is named by its identity's host label.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
production() → Future<DVPreviewProduction>
suspend(DVPreviewIdentity identity) → Future<void>
toString() → String
A string representation of this object.
inherited
valueDigests(String database, String table, String column) → Future<Set<String>>
SHA-256 digests, as lowercase hex, of every non-null value of table.column in database. Used to prove a sanitization step left no production value behind, without either side's values leaving the provider.
wake(DVPreviewIdentity identity) → Future<void>

Operators

operator ==(Object other) → bool
The equality operator.
inherited