-
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
d56153f
commit eee8c52
Showing
3 changed files
with
30 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 @@ | ||
# Query Extractor | ||
|
||
Extracts data from a database table using a custom SQL query. | ||
|
||
## Options | ||
|
||
| Name | Type | Default | Description | | ||
| ---- |----- | ------- | ----------- | | ||
| connection | string | default | Name of the database connection to use. | | ||
| bindings | array | `[]` | Values to bind to the query statement. | | ||
|
||
|
||
## Usage | ||
|
||
Default options: | ||
```php | ||
$etl->extract('query', 'select * from users'); | ||
``` | ||
|
||
Custom options: | ||
```php | ||
$options = [ | ||
'connection' => 'app', | ||
'bindings' => ['active'], | ||
]; | ||
|
||
$etl->extract('query', 'select * from users where status = ?', $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 |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
* [CSV](Csv.md) | ||
* [Fixed Width](FixedWidth.md) | ||
* [JSON](Json.md) | ||
* [Query](Query.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