azuread

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActiveDirectoryDefault     = "ActiveDirectoryDefault"
	ActiveDirectoryIntegrated  = "ActiveDirectoryIntegrated"
	ActiveDirectoryPassword    = "ActiveDirectoryPassword"
	ActiveDirectoryInteractive = "ActiveDirectoryInteractive"
	// ActiveDirectoryMSI is a synonym for ActiveDirectoryManagedIdentity
	ActiveDirectoryMSI             = "ActiveDirectoryMSI"
	ActiveDirectoryManagedIdentity = "ActiveDirectoryManagedIdentity"
	// ActiveDirectoryApplication is a synonym for ActiveDirectoryServicePrincipal
	ActiveDirectoryApplication      = "ActiveDirectoryApplication"
	ActiveDirectoryServicePrincipal = "ActiveDirectoryServicePrincipal"
)
View Source
const DriverName = "azuresql"

DriverName is the name used to register the driver

Variables

This section is empty.

Functions

func NewConnector

func NewConnector(dsn string) (*mssql.Connector, error)

NewConnector creates a new connector from a DSN. The returned connector may be used with sql.OpenDB.

Types

type Driver

type Driver struct {
}

Driver wraps the underlying MSSQL driver, but configures the Azure AD token provider

func (*Driver) Open

func (d *Driver) Open(dsn string) (driver.Conn, error)

Open returns a new connection to the database.

Jump to

Keyboard shortcuts

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