-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Deprecated From/To/Transform/Handler DSL classes in favor of functions.php * Deprecated all DSL static classes from adapters * Added ScalarFunctionFilter implementation of Partition Filter in order to deprecate Partitions dsl and simplify filtering partitions * Covered list/map/struct in DSL * Renamed read to df() * Extract adapter specific dsl functions to adapters * Fixed invalid autoload paths * Fixed wrong import statements * CS Fixes * Fixed incorrect import
- Loading branch information
1 parent
6f400a4
commit 591529a
Showing
337 changed files
with
4,910 additions
and
3,144 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
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
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
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
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
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
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
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
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 |
---|---|---|
|
@@ -7,13 +7,13 @@ | |
exit(1); | ||
} | ||
|
||
use function Flow\ETL\Adapter\CSV\from_csv; | ||
use Doctrine\DBAL\DriverManager; | ||
use Doctrine\DBAL\Schema\Column; | ||
use Doctrine\DBAL\Schema\Table; | ||
use Doctrine\DBAL\Types\Type; | ||
use Doctrine\DBAL\Types\Types; | ||
use Flow\ETL\Adapter\Doctrine\DbalLoader; | ||
use Flow\ETL\DSL\CSV; | ||
use Flow\ETL\Flow; | ||
|
||
$dbConnectionString = 'postgresql://postgres:[email protected]:5432/postgres?serverVersion=11%26charset=utf8'; | ||
|
@@ -36,7 +36,7 @@ | |
); | ||
|
||
(new Flow()) | ||
->read(CSV::from($path = __FLOW_OUTPUT__ . '/dataset.csv', 10_000)) | ||
->read(from_csv($path = __FLOW_OUTPUT__ . '/dataset.csv', 10_000)) | ||
->rename('last name', 'last_name') | ||
->limit(1_000_000) | ||
->load(DbalLoader::fromConnection($dbConnection, 'source_dataset_table', 1000)) | ||
|
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
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
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
Oops, something went wrong.