You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li><code>...->cast('date')</code> - casts column to a date type.</li>
457
457
<li><code>...->dateFormat('Y/m')</code> - format date using the <code>Y/m</code> format, as a result created_at becomes a string <code>2023/01</code>.</li>
458
458
</ul>
459
-
<p>You can find all available functions in the <ahref="../src/core/etl/src/Flow/ETL/DSL/functions.php">DSL</a>.</p>
459
+
<p>You can find all available functions in the <atarget="_blank" href="https://github.com/flow-php/flow/blob/1.x/src/core/etl/src/Flow/ETL/DSL/functions.php">DSL</a>.</p>
460
460
<blockquote>
461
461
<p>[!TIP]
462
462
DSL is nothing more than a set of functions that return instances of Flow PHP objects.
<p>Second write is writing the data to a CSV file, we're using the <code>mode()</code> function to set the save mode to <code>overwrite</code>.
480
480
There are three save modes available:</p>
481
481
<ul>
482
-
<li><code>SaveMode::Append</code> - 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.</li>
483
-
<li><code>SaveMode::ExceptionIfExists</code> - If data sink already exists error will be thrown.</li>
482
+
<li><code>SaveMode::Append</code> - If data sink already exists, data will be appended. This solution might cause data duplication since it does not check if the given rows already exist.</li>
483
+
<li><code>SaveMode::ExceptionIfExists</code> - If data sink already exists an error will be thrown.</li>
484
484
<li><code>SaveMode::Ignore</code> - If data sink already exists, writing will be skipped.</li>
485
485
<li><code>SaveMode::Overwrite</code> - If data sink already exists, it will be removed and written again.</li>
486
486
</ul>
487
487
<blockquote>
488
488
<p>[!NOTE]
489
489
Append mode is not really appending anything to existing files, instead it creates a folder in which it stores outputs under randomized file names.
490
-
It can be later read using glob-pattern, for example <code>from_csv('/path/to/folder/*.csv')</code>.</p>
490
+
It can be later read using a glob-pattern, for example <code>from_csv('/path/to/folder/*.csv')</code>.</p>
<p>There are few more triggering functions, like <code>fetch()</code>, you can find which functions are <code>@lazy</code> or <code>@trigger</code> looking at
497
+
<p>There are few more triggering functions, like <code>fetch()</code>. You can find which functions are <code>@lazy</code> or <code>@trigger</code> by looking at
498
498
the <atarget="_blank" href="https://github.com/flow-php/flow/blob/1.x/src/core/etl/src/Flow/ETL/DataFrame.php">DataFrame</a> source code.</p>
0 commit comments