package
0.0.0-20220901125102-4d3dd682645a
Repository: https://github.com/mmussett/flogo-components.git
Documentation: pkg.go.dev

# README

MySQL Fetch

This activity provides your flogo application the ability to fire a select query to mySQL database and fetch the required data returning it as a JSON string.

Installation

Flogo Web

Use the below link for to install this activity in Flogo Web

https://github.com/Ganitagya/flogo-contrib/activity/mysqlfetch

Flogo CLI

flogo add activity github.com/Ganitagya/flogo-contrib/activity/mysqlfetch

Schema

Inputs and Outputs:

"input":[
   {
      "name": "host",
      "type": "string",
      "required": true
    },
    {
      "name": "username",
      "type": "string",
      "required": true
    },
    {
      "name": "password",
      "type": "string",
      "required": true
    },
    {
      "name": "database",
      "type": "string",
      "required": true
    },
    {
      "name": "query",
      "type": "string",
      "required": true
    }
  ],
  "output": [
    {
      "name": "result",
      "type": "any"
    }
  ]

Settings

SettingRequiredDescription
hostTrueThe hostname of the MySQL server, including the portnumber of the server (like localhost:3306)
usernameTrueThe username to connect to MySQL
passwordTrueThe password to connect to MySQL
databaseTrueThe name of the MySQL database
queryTrueThe SELECT query you want to execute

# Functions

NewActivity creates a new AppActivity.

# Structs

MyActivity is a stub for your Activity implementation.