elsa-workflows / elsa-core

A .NET workflows library
https://v3.elsaworkflows.io/
MIT License
6.29k stars 1.15k forks source link

SQL Activity #1648

Open mohdali opened 2 years ago

mohdali commented 2 years ago

I propose to introduce an ExecuteSql activity that can enable reading or writing data using an SQL query. The activity will have the following properties:

As a plus, if Elsa designer can be extended to support SQL syntax it will allow syntax highlighting and possibly code completion while building the query.

tomy2105 commented 2 years ago

I like the proposal but read and write mode is a bit of confusing since both delete, insert and update can return a result set same as select.

In addition I would, maybe, not fetch whole result set at once but block to browse through result set (forward, backward, etc...) and fetch as it executes. Fetching everything for big result sets could be bad.

mohdali commented 2 years ago

I like the proposal but read and write mode is a bit of confusing since both delete, insert and update can return a result set same as select.

In addition I would, maybe, not fetch whole result set at once but block to browse through result set (forward, backward, etc...) and fetch as it executes. Fetching everything for big result sets could be bad.

Since we now have the SQL activity we can probably start thinking about this.

I like the idea to make the activity a kind of a blocking iterator.

I also want to have a kind of bulk operations that will be more efficient with large data.

We may need to also support more DB types. Oracle is could be next.