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 ¶
func NewIllaCloudPeriphearalAPI ¶
func NewIllaCloudPeriphearalAPI() *IllaCloudPeriphearalAPI
func (*IllaCloudPeriphearalAPI) GenerateSQL ¶
func (i *IllaCloudPeriphearalAPI) GenerateSQL(m *GenerateSQLPeripheralRequest) (*GenerateSQLFeedback, error)
Click to show internal directories.
Click to hide internal directories.