common

package
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RetrieveToMap

func RetrieveToMap(rows *sql.Rows) ([]map[string]interface{}, error)

Types

type ConnectionResult

type ConnectionResult struct {
	Success bool
}

type DataConnector

type DataConnector interface {
	ValidateResourceOptions(resourceOptions map[string]interface{}) (ValidateResult, error)
	ValidateActionOptions(actionOptions map[string]interface{}) (ValidateResult, error)
	TestConnection(resourceOptions map[string]interface{}) (ConnectionResult, error)
	GetMetaInfo(resourceOptions map[string]interface{}) (MetaInfoResult, error)
	Run(resourceOptions map[string]interface{}, actionOptions map[string]interface{}) (RuntimeResult, error)
}

type MetaInfoResult

type MetaInfoResult struct {
	Success bool
	Schema  map[string]interface{}
}

type RuntimeResult

type RuntimeResult struct {
	Success bool
	Rows    []map[string]interface{}
	Extra   map[string]interface{}
}

type ValidateResult

type ValidateResult struct {
	Valid bool
	Extra map[string]interface{}
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL