Documentation
¶
Index ¶
- type Config
- type Connector
- func (c Connector) Config() connectors.Config
- func (c Connector) Discovery(ctx context.Context, tablesList []string) ([]model.Table, error)
- func (c *Connector) GuessColumnType(sqlType string) model.ColumnType
- func (c *Connector) InferQuery(ctx context.Context, query string) ([]model.ColumnSchema, error)
- func (c Connector) LoadsColumns(ctx context.Context, tableName string) ([]model.ColumnSchema, error)
- func (c Connector) Ping(ctx context.Context) error
- func (c Connector) Query(ctx context.Context, endpoint model.Endpoint, params map[string]any) ([]map[string]any, error)
- func (c Connector) Sample(ctx context.Context, table model.Table) ([]map[string]any, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ConnType string `yaml:"type"`
Hosts []string `yaml:"hosts"`
User string `yaml:"user"`
Password string `yaml:"password"`
Database string `yaml:"database"`
Schema string `yaml:"schema"`
Port int `yaml:"port"`
ConnString string `yaml:"conn_string"`
IsReadonly bool `yaml:"is_readonly"`
}
Config holds the configuration for Oracle database connection
func (Config) ConnectionString ¶
ConnectionString builds Oracle connection string
func (Config) ExtraPrompt ¶
ExtraPrompt implements the connectors.Config interface
func (*Config) UnmarshalYAML ¶
UnmarshalYAML implements the yaml.Unmarshaler interface to allow for both direct connection string or full configuration objects in YAML
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
Connector implements the connectors.Connector interface for Oracle Database
func (Connector) Config ¶
func (c Connector) Config() connectors.Config
func (*Connector) GuessColumnType ¶
func (c *Connector) GuessColumnType(sqlType string) model.ColumnType
GuessColumnType implements TypeGuesser interface for Oracle
func (*Connector) InferQuery ¶
InferQuery implements the Connector interface
func (Connector) LoadsColumns ¶
Click to show internal directories.
Click to hide internal directories.