Documentation
¶
Index ¶
- Constants
- func ConvertSQlArgsToDriverValues(sqlArgs []interface{}) []driver.Value
- type Action
- type Connector
- func (o *Connector) GetMetaInfo(resourceOptions map[string]interface{}) (common.MetaInfoResult, error)
- func (o *Connector) Run(resourceOptions map[string]interface{}, actionOptions map[string]interface{}, ...) (common.RuntimeResult, error)
- func (o *Connector) TestConnection(resourceOptions map[string]interface{}) (common.ConnectionResult, error)
- func (o *Connector) ValidateActionTemplate(actionOptions map[string]interface{}) (common.ValidateResult, error)
- func (o *Connector) ValidateResourceOptions(resourceOptions map[string]interface{}) (common.ValidateResult, error)
- type GUIBulkOpts
- type Resource
- type SQL
Constants ¶
View Source
const ( CONNECTION_SID = "SID" CONNECTION_SERVICE = "Service" ACTION_SQL_MODE = "sql" ACTION_SQL_SAFE_MODE = "sql-safe" ACTION_GUI_MODE = "gui" ACTION_GUI_TYPE = "bulk_insert" )
View Source
const ( FIELD_CONTEXT = "context" FIELD_QUERY = "query" FIELD_OPTS = "opts" FIELD_RAW = "raw" )
View Source
const (
DEFAULT_CONNECTION_TIMEOUT = time.Second * 60
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Action ¶
type Action struct { Mode string `mapstructure:"mode" validate:"oneof=gui sql sql-safe"` Opts map[string]interface{} `mapstructure:"opts"` RawQuery string Context map[string]interface{} }
func (*Action) IsSafeMode ¶
func (*Action) SetRawQueryAndContext ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
func (*Connector) GetMetaInfo ¶
func (o *Connector) GetMetaInfo(resourceOptions map[string]interface{}) (common.MetaInfoResult, error)
func (*Connector) TestConnection ¶
func (o *Connector) TestConnection(resourceOptions map[string]interface{}) (common.ConnectionResult, error)
func (*Connector) ValidateActionTemplate ¶
func (o *Connector) ValidateActionTemplate(actionOptions map[string]interface{}) (common.ValidateResult, error)
func (*Connector) ValidateResourceOptions ¶
func (o *Connector) ValidateResourceOptions(resourceOptions map[string]interface{}) (common.ValidateResult, error)
type GUIBulkOpts ¶
type Resource ¶
type Resource struct { Host string `mapstructure:"host" validate:"required"` Port string `mapstructure:"port" validate:"required"` Type string `mapstructure:"connectionType" validate:"oneof=SID Service"` Name string `mapstructure:"name"` SSL bool `mapstructure:"ssl"` Username string `mapstructure:"username"` Password string `mapstructure:"password"` }
Click to show internal directories.
Click to hide internal directories.