ProjectInit Module
Types
| Type | Description |
|
What the caller should do for a directory, given its state and force. |
Functions and values
| Function or value |
Description
|
Full Usage:
applyOverrides config overrides
Parameters:
MigrondiConfig
overrides : ProjectOverrides
Returns: MigrondiConfig
|
Applies optional caller-provided fields on top of a base config. An invalid driver value falls back to the base config's driver; callers that must report invalid drivers as errors validate before calling.
|
|
`true, _ -> CreateFresh | false, true -> AdoptExisting | false, false -> RefuseNonEmpty`. The destructive clean setup stays CLI-only: the shared layer never deletes a migrations directory.
|
|
True when the directory contains no files and no subdirectories; a missing directory is created and reported as empty.
|
|
Recovers known fields from arbitrary JSON (`Map
|
Full Usage:
writeProject directory config
Parameters:
DirectoryInfo
config : MigrondiConfig
Returns: Result<unit, string>
|
Writes migrondi.json (MiSerializer.Encode — byte-identical to the CLI's WriteConfiguration for the default physical source) and creates the migrations directory. Never deletes anything.
|
Migrondi