config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Code generated by baton-sdk. DO NOT EDIT!!!

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfigPathField = field.StringField(
		"config-path",
		field.WithRequired(true),
		field.WithDescription("The file path to the baton-sql config to use"),
	)

	// ConfigurationFields defines the external configuration required for the connector to run.
	ConfigurationFields = []field.SchemaField{
		ConfigPathField,
	}
	ConfigurationSchema = field.NewConfiguration(ConfigurationFields)
)
View Source
var (
	Config = field.NewConfiguration(
		ConfigurationFields,
		field.WithConnectorDisplayName("SQL"),
		field.WithHelpUrl("/docs/baton/sql"),
		field.WithIconUrl("/static/app-icons/sql.svg"),
	)
)

Functions

This section is empty.

Types

type SQL added in v0.0.14

type SQL struct {
	ConfigPath string `mapstructure:"config-path"`
}

func (*SQL) GetBool added in v0.0.14

func (c *SQL) GetBool(fieldName string) bool

func (*SQL) GetInt added in v0.0.14

func (c *SQL) GetInt(fieldName string) int

func (*SQL) GetString added in v0.0.14

func (c *SQL) GetString(fieldName string) string

func (*SQL) GetStringMap added in v0.0.14

func (c *SQL) GetStringMap(fieldName string) map[string]any

func (*SQL) GetStringSlice added in v0.0.14

func (c *SQL) GetStringSlice(fieldName string) []string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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