oracle

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONNECTION_SID     = "SID"
	CONNECTION_SERVICE = "Service"
	ACTION_SQL_MODE    = "sql"
	ACTION_GUI_MODE    = "gui"
	ACTION_GUI_TYPE    = "bulk_insert"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Mode string                 `mapstructure:"mode" validate:"oneof=sql gui"`
	Opts map[string]interface{} `mapstructure:"opts"`
}

type Connector

type Connector struct {
	// contains filtered or unexported fields
}

func (*Connector) GetMetaInfo

func (o *Connector) GetMetaInfo(resourceOpts map[string]interface{}) (common.MetaInfoResult, error)

func (*Connector) Run

func (o *Connector) Run(resourceOpts map[string]interface{}, actionOpts map[string]interface{}) (common.RuntimeResult, error)

func (*Connector) TestConnection

func (o *Connector) TestConnection(resourceOpts map[string]interface{}) (common.ConnectionResult, error)

func (*Connector) ValidateActionOptions

func (o *Connector) ValidateActionOptions(actionOpts map[string]interface{}) (common.ValidateResult, error)

func (*Connector) ValidateResourceOptions

func (o *Connector) ValidateResourceOptions(resourceOpts map[string]interface{}) (common.ValidateResult, error)

type GUIBulkOpts

type GUIBulkOpts struct {
	Table   string                   `mapstructure:"table"`
	Type    string                   `mapstructure:"actionType"`
	Records []map[string]interface{} `mapstructure:"records"`
	Key     string                   `mapstructure:"primaryKey"`
}

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"`
}

type SQL

type SQL struct {
	Raw string `mapstructure:"raw"`
}

Jump to

Keyboard shortcuts

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