interface

ProjectDriver

Application-compiled callbacks behind adapter-owned project migration commands.

Properties

PropertyTypeDescription
Validatefunc() errorValidate checks the complete executable registration before a project command resolves config or changes database state.
DataTransformsfunc() []DataTransformDescriptorThe DataTransforms value.
RunProjectMigrationfunc(context.Context, ProjectRequest, schema.Manifest) errorRunProjectMigration receives the exact manifest resolved by the process that will execute the request. The driver must validate it against the selected artifact history before opening or changing the database.

Full signature

type ProjectDriver interface { // Validate checks the complete executable registration before a project // command resolves config or changes database state. Validate() error DataTransforms() []DataTransformDescriptor // RunProjectMigration receives the exact manifest resolved by the process // that will execute the request. The driver must validate it against the // selected artifact history before opening or changing the database. RunProjectMigration(context.Context, ProjectRequest, schema.Manifest) error }

Source migration/project.go:48