msramos / ex_pipeline Goto Github PK
View Code? Open in Web Editor NEWAn opinionated library to build features as pipelines.
License: Apache License 2.0
An opinionated library to build features as pipelines.
License: Apache License 2.0
Hi ๐
I know this is just like a PoC or something. And it doesn't need to be this huge package or something. And its probably abandoned.
But, the only problem for me using this micro library, is that its not possible to wrap all steps inside a transaction.
Pipeline needs access to the Repo module, which can be done by an optional overridable function that by default returns nil.
If we use multi the state would be the changes in Ecto.Multi which change and evolve as you combine different multis together.
You can actually return a "pure" multi from a step by just
def get_company_step do
# some other non multi code to get company
Ecto.Multi.new()
|> Ecto.Multi.put(:company, company)
end
or have the pipeline insert the returned value from the result returned by the step with the function name like:
# code to execute and combine steps
Ecto.Multi.new()
|> Ecto.Multi.put(step_name, result)
# other code
I wonder how hard it is to fit this idea into this library ๐ค
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.