function
CreateArtifact
Plan and atomically write one immutable SQLite migration artifact.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
directory | string | The directory value. |
name | string | The name value. |
after | schema.Manifest | The after value. |
now | time.Time | The now value. |
options | ArtifactOptions | The options value. |
Returns
The declared result.
(CreatedArtifact, error)Full signature
func CreateArtifact(
ctx context.Context,
directory,
name string,
after schema.Manifest,
now time.Time,
options ArtifactOptions,
) (CreatedArtifact, error)Related types
ManifestAn immutable versioned schema contract.
ArtifactOptionsArtifactOptions are the reviewed decisions a SQLite migration records beyond its before and after manifests.
CreatedArtifactThe stable filesystem identity of a newly committed artifact.