Documentation ¶
Index ¶
- Constants
- func ProcessTemplateByContext(template interface{}, context map[string]interface{}) (interface{}, error)
- func RetrieveToMap(rows *sql.Rows) ([]map[string]interface{}, error)
- func RetrieveToMapByDriverRows(rows driver.Rows) ([]map[string]interface{}, error)
- type ConnectionResult
- type DataConnector
- type MetaInfoResult
- type RuntimeResult
- type ValidateResult
Constants ¶
View Source
const ( MODE_GUI = "gui" MODE_SQL = "sql" MODE_SQL_SAFE = "sql-safe" )
View Source
const DEFAULT_QUERY_AND_EXEC_TIMEOUT = 30 * time.Second
View Source
const SQL_RESULT_MEMORY_CHECK_SAMPLE = 100 // check 100 item bytes and calculate max item capacity
View Source
const SQL_RESULT_MEMORY_LIMIT = 20971520 // 20 * 1024 * 1024 bytes
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConnectionResult ¶
type ConnectionResult struct {
Success bool
}
type DataConnector ¶
type DataConnector interface { ValidateResourceOptions(resourceOptions map[string]interface{}) (ValidateResult, error) ValidateActionTemplate(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{}, rawActionOptions map[string]interface{}) (RuntimeResult, error) }
type MetaInfoResult ¶
func (*MetaInfoResult) ExportSchema ¶
func (metaInfoResult *MetaInfoResult) ExportSchema() map[string]interface{}
type RuntimeResult ¶
type RuntimeResult struct { Success bool Rows []map[string]interface{} Extra map[string]interface{} }
func (*RuntimeResult) SetSuccess ¶
func (i *RuntimeResult) SetSuccess()
type ValidateResult ¶
Click to show internal directories.
Click to hide internal directories.