oracle9i

package
v0.0.0-...-9e48597 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

func ConvertSQlArgsToDriverValues

func ConvertSQlArgsToDriverValues(sqlArgs []interface{}) []driver.Value

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 (q *Action) IsSafeMode() bool

func (*Action) SetRawQueryAndContext

func (q *Action) SetRawQueryAndContext(rawTemplate map[string]interface{}) error

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) Run

func (o *Connector) Run(resourceOptions map[string]interface{}, actionOptions map[string]interface{}, rawActionOptions map[string]interface{}) (common.RuntimeResult, 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 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