-
-
Notifications
You must be signed in to change notification settings - Fork 48
Description
That would be very helpful integration from text processing point of view.
Library: https://github.com/symfony/string
It should be pretty straightforward since we would just need to create a scalar function for each of the methods string methods.
I think we can make it a part of TextAdapter, just put all scalar functions inside of it.
All those functions should be also added to TextAdapter DSL functions, with a text_ prefix.
Those functions should exist in the src/core/etl/src/Flow/ETL/Function namespace and be part of the core ETL.
We don't even need to create for them dedicated DSL functions (as they can only operate on string), what we can do is simply expose them through src/core/etl/src/Flow/ETL/Function/ScalarFunctionChain.php so they would all be available through ref()->xxxx
Documentation: How to create scalar function