Documentation
¶
Overview ¶
Package sqlserver is the SQL Server provider. Metadata is read from the catalog views with microsoft/go-mssqldb; every connection is dialed through connections.Dialer (Connector.Dialer: the driver resolves the name, the dialer checks and dials each resolved address).
Index ¶
- type Provider
- func (*Provider) ConfigSchema() []connections.Field
- func (*Provider) EngineKind() string
- func (*Provider) Family() connections.Family
- func (*Provider) Kind() connections.Kind
- func (*Provider) Label() string
- func (*Provider) Meta() connections.TypeMeta
- func (p *Provider) OpenMetadata(ctx context.Context, cfg connections.Config) (connections.MetadataReader, error)
- func (p *Provider) Ping(ctx context.Context, cfg connections.Config) error
- func (*Provider) Roles() []connections.Role
- func (*Provider) Status() connections.Status
- func (p *Provider) Validate(cfg connections.Config) (connections.Config, error)
- func (*Provider) WalksCatalogs() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func New ¶
func New(d *connections.Dialer) *Provider
func (*Provider) ConfigSchema ¶
func (*Provider) ConfigSchema() []connections.Field
func (*Provider) EngineKind ¶
func (*Provider) Family ¶
func (*Provider) Family() connections.Family
func (*Provider) Kind ¶
func (*Provider) Kind() connections.Kind
func (*Provider) Meta ¶
func (*Provider) Meta() connections.TypeMeta
Meta implements connections.Provider (ADR 0021).
func (*Provider) OpenMetadata ¶
func (p *Provider) OpenMetadata(ctx context.Context, cfg connections.Config) (connections.MetadataReader, error)
func (*Provider) Roles ¶
func (*Provider) Roles() []connections.Role
func (*Provider) Status ¶
func (*Provider) Status() connections.Status
func (*Provider) Validate ¶
func (p *Provider) Validate(cfg connections.Config) (connections.Config, error)
func (*Provider) WalksCatalogs ¶
WalksCatalogs: the reader reads a whole catalog in one query (#15).