illacloudperipheralapisdk

package
v1.9.1-0...-8664551 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const GENERATE_SQL_DESCRIPTION_TEMPALTE = "### %s tables, with their properties: #%s #### %s %s"

field is: - database type, like "Postgres SQL" - table fields as: #{table_nbame}({column_a}, {column_b}) - user description, like "A query to list the names of the departments which employed more than 10 employees in the last 3 months" - action: like "INSERT, UPDATE ... "

View Source
const (
	PERIPHERAL_API_GENERATE_SQL_PATH = "generateSQL"
)
View Source
const TABLE_DESC_CHARACTER_LIMIT = 1000

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerateSQLFeedback

type GenerateSQLFeedback struct {
	Payload string `json:"payload"`
}

func (*GenerateSQLFeedback) ExportForFeedback

func (resp *GenerateSQLFeedback) ExportForFeedback() interface{}

type GenerateSQLPeripheralRequest

type GenerateSQLPeripheralRequest struct {
	Description   string `json:"description" validate:"required"`
	ValidateToken string `json:"validateToken" validate:"required"`
	SQLAction     string `json:"-"` // which is one of "SELECT", "INSERT", "UPDATE", "DELETE"
}

func NewGenerateSQLPeripheralRequest

func NewGenerateSQLPeripheralRequest(resourceType string, metaInfo interface{}, description string, sqlAction string) (*GenerateSQLPeripheralRequest, error)

func (*GenerateSQLPeripheralRequest) Export

func (m *GenerateSQLPeripheralRequest) Export() map[string]string

func (*GenerateSQLPeripheralRequest) SetValidateToken

func (m *GenerateSQLPeripheralRequest) SetValidateToken(token string)

type IllaCloudPeriphearalAPI

type IllaCloudPeriphearalAPI struct {
	Config *config.Config
}

func NewIllaCloudPeriphearalAPI

func NewIllaCloudPeriphearalAPI() *IllaCloudPeriphearalAPI

func (*IllaCloudPeriphearalAPI) GenerateSQL

Jump to

Keyboard shortcuts

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