#[COLLAB] Directus Flow - Custom Operation with UI to execute SQL Stored Procedure

6 messages · Page 1 of 1 (latest)

pearl crag
#

Hello friends,

As we all know, Directus does not support out-of-the-box feature to execute SQL Stored Procedure. I know the Directus team did that on purpose because of complications with Stored Procedure that might affect Directus features.

Acknowledging that!!! However, I think there are still good use case of having the ability to execute SQL Stored Procedure in Directus Flow. We just need to use it with care! Imagine having an Operation in Directus Flow to execute SQL stored procedure 99 !!!

Luckily, custom operation has access to the needed knex object that would allow us to do just that. Hence, I am reaching out to all of the folks out there who are interested for a "small" collaboration project. And to build a custom extension for everyone who is interested in having this tool handy to use in their projects.

Let's lay down some ideas & expectations we can have for this feature:

  • a custom operation (named: Execute Stored Procedure) that can be selected on the UI
  • when selected, the UI should display necessary input boxes to input parameters (that can be dynamic variables)
  • result of the operation is returned and passed on to the next operation in the Directus Flow.

I am a self-taught programmer, who has little experience with Vue & Knex, and this is my first time working on a open source project, but I'm up for the challenge. And please feel free to point out if I am hallucinating, and any issues with my current way of thinking. It is greatly appreciated! Always be learning 😁

Let me know if you are interested!!!

#

[COLLAB] Directus Flow - Custom Operation with UI to execute SQL Stored Procedure

lavish wind
#

I think it's posiblle and a great idea that should be realized

sharp anchor
#

sounds good, but do keep in mind that there are multiple types of databases that are not all the same when calling procedures

somber totem
#

I've only done a small micro-project w/ Vue but I'm an experienced React dev. Might be up for a collab here!

pearl crag
#

Hi @somber totem, that is absolutely great to hear. Very excited to collab with you on this!!!

I will direct message you!