SaveMode : string
Cases
- Append = 'append'
- If data sink already exists, data will be appended, this solution might cause data duplication since it's not check if given rows already existed.
- ExceptionIfExists = 'exception_if_exists'
- If data sink already exists error will be thrown.
- Ignore = 'ignore'
- If data sink already exists, writing will be skipped.
- Overwrite = 'overwrite'
- If data sink already exists, it will be removed and written again.
Methods
- admits() : bool
- Whether a write into $glob goes ahead, decided once for the whole destination: Ignore over an existing file answers false, ExceptionIfExists over an existing file throws, Append beside a regular file at the static root of a pattern throws. Hidden paths below the static root (another write's temporary output) are not files of the destination.
- replaces() : bool
Cases
Append
If data sink already exists, data will be appended, this solution might cause data duplication since it's not check if given rows already existed.
ExceptionIfExists
If data sink already exists error will be thrown.
Ignore
If data sink already exists, writing will be skipped.
Overwrite
If data sink already exists, it will be removed and written again.
Methods
admits()
Whether a write into $glob goes ahead, decided once for the whole destination: Ignore over an existing file answers false, ExceptionIfExists over an existing file throws, Append beside a regular file at the static root of a pattern throws. Hidden paths below the static root (another write's temporary output) are not files of the destination.
public
admits(Filesystem $filesystem, Path $glob) : bool
Parameters
- $filesystem : Filesystem
- $glob : Path
Tags
Return values
boolreplaces()
public
replaces() : bool