Documentation ¶
Index ¶
- Constants
- type MySQLConnector
- func (m *MySQLConnector) GetMetaInfo(resourceOptions map[string]interface{}) (common.MetaInfoResult, error)
- func (m *MySQLConnector) Run(resourceOptions map[string]interface{}, actionOptions map[string]interface{}, ...) (common.RuntimeResult, error)
- func (m *MySQLConnector) TestConnection(resourceOptions map[string]interface{}) (common.ConnectionResult, error)
- func (m *MySQLConnector) ValidateActionTemplate(actionOptions map[string]interface{}) (common.ValidateResult, error)
- func (m *MySQLConnector) ValidateResourceOptions(resourceOptions map[string]interface{}) (common.ValidateResult, error)
- type MySQLOptions
- type MySQLQuery
- type SSLOptions
Constants ¶
View Source
const ( FIELD_CONTEXT = "context" FIELD_QUERY = "query" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySQLConnector ¶
type MySQLConnector struct { Resource MySQLOptions Action MySQLQuery }
func (*MySQLConnector) GetMetaInfo ¶
func (m *MySQLConnector) GetMetaInfo(resourceOptions map[string]interface{}) (common.MetaInfoResult, error)
func (*MySQLConnector) Run ¶
func (m *MySQLConnector) Run(resourceOptions map[string]interface{}, actionOptions map[string]interface{}, rawActionOptions map[string]interface{}) (common.RuntimeResult, error)
func (*MySQLConnector) TestConnection ¶
func (m *MySQLConnector) TestConnection(resourceOptions map[string]interface{}) (common.ConnectionResult, error)
func (*MySQLConnector) ValidateActionTemplate ¶
func (m *MySQLConnector) ValidateActionTemplate(actionOptions map[string]interface{}) (common.ValidateResult, error)
func (*MySQLConnector) ValidateResourceOptions ¶
func (m *MySQLConnector) ValidateResourceOptions(resourceOptions map[string]interface{}) (common.ValidateResult, error)
type MySQLOptions ¶
type MySQLQuery ¶
type MySQLQuery struct { Mode string `validate:"required,oneof=gui sql sql-safe"` Query string RawQuery string Context map[string]interface{} }
func (*MySQLQuery) IsSafeMode ¶
func (q *MySQLQuery) IsSafeMode() bool
func (*MySQLQuery) SetRawQueryAndContext ¶
func (q *MySQLQuery) SetRawQueryAndContext(rawTemplate map[string]interface{}) error
Click to show internal directories.
Click to hide internal directories.