Sha256: 3d117bab5e71d668a6aebc0ebf7c1e15c46ec5a97745db51d693f6eaddae2a14

Contents?: true

Size: 1.2 KB

Versions: 17

Compression:

Stored size: 1.2 KB

Contents

SELECT
  workflows.id AS workflow_id,
  workflows.name AS workflow_name,
  workflows.description AS workflow_description,
  sections.id AS section_id,
  sections.name AS section_name,
  sections.description AS section_description,
  sections."order" AS section_order,
  steps.id AS step_id,
  steps.name AS step_name,
  steps."order" AS step_order,
  steps.prompt AS step_prompt,
  json_group_array(
    json_object(
      'name', input_attr.name,
      'type', input_attr.type,
      'is_array', input_attr.is_array
    )
  ) AS inputs,
  json_group_array(
    json_object(
      'name', output_attr.name,
      'type', output_attr.type,
      'is_array', output_attr.is_array
    )
  ) AS outputs
FROM workflows
LEFT JOIN sections ON workflows.id = sections.workflow_id
LEFT JOIN steps ON sections.id = steps.section_id
LEFT JOIN input_attributes ON steps.id = input_attributes.step_id
LEFT JOIN attributes AS input_attr ON input_attributes.attribute_id = input_attr.id
LEFT JOIN output_attributes ON steps.id = output_attributes.step_id
LEFT JOIN attributes AS output_attr ON output_attributes.attribute_id = output_attr.id
GROUP BY workflows.id, sections.id, steps.id
ORDER BY workflows.name, sections."order", steps."order";

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
ad-agent_architecture-0.0.24 lib/ad/agent_architecture/sql/workflow_details.sql
ad-agent_architecture-0.0.23 lib/ad/agent_architecture/sql/workflow_details.sql
ad-agent_architecture-0.0.22 lib/ad/agent_architecture/sql/workflow_details.sql
ad-agent_architecture-0.0.21 lib/ad/agent_architecture/sql/workflow_details.sql
ad-agent_architecture-0.0.20 lib/ad/agent_architecture/sql/workflow_details.sql
ad-agent_architecture-0.0.19 lib/ad/agent_architecture/sql/workflow_details.sql
ad-agent_architecture-0.0.18 lib/ad/agent_architecture/sql/workflow_details.sql
ad-agent_architecture-0.0.17 lib/ad/agent_architecture/sql/workflow_details.sql
ad-agent_architecture-0.0.16 lib/ad/agent_architecture/sql/workflow_details.sql
ad-agent_architecture-0.0.15 lib/ad/agent_architecture/sql/workflow_details.sql
ad-agent_architecture-0.0.14 lib/ad/agent_architecture/sql/workflow_details.sql
ad-agent_architecture-0.0.13 lib/ad/agent_architecture/sql/workflow_details.sql
ad-agent_architecture-0.0.12 lib/ad/agent_architecture/sql/workflow_details.sql
ad-agent_architecture-0.0.11 lib/ad/agent_architecture/sql/workflow_details.sql
ad-agent_architecture-0.0.10 lib/ad/agent_architecture/sql/workflow_details.sql
ad-agent_architecture-0.0.9 lib/ad/agent_architecture/sql/workflow_details.sql
ad-agent_architecture-0.0.8 lib/ad/agent_architecture/sql/workflow_details.sql