-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f86034c
commit 8a141d7
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Collection Extractor | ||
|
||
The collection extractor can be used to get data from any iterable item. It accepts arrays or traversables objects. The collection items must be associative arrays. | ||
|
||
> **Tip:** Using generators will decrease memory usage. | ||
## Options | ||
|
||
| Name | Type | Default | Description | | ||
| ---- |----- | ------- | ----------- | | ||
| columns | array | null | Columns that will be extracted. | | ||
|
||
|
||
## Usage | ||
|
||
Default options: | ||
```php | ||
$etl->extract('collection', $iterable); | ||
``` | ||
|
||
Custom options: | ||
```php | ||
$options = [ | ||
'columns' => ['id', 'name'] | ||
]; | ||
|
||
$etl->extract('collection', $iterable, $options); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# Extractors | ||
|
||
* [Collection](Collection.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
* [Introduction](Introduction.md) | ||
* [Getting Started](GettingStarted.md) | ||
* [Extractors](Extractors/README.md) | ||
* [Collection](Extractors/Collection.md) |