Help us shape the future of Go! Take the 2026 Go Developer Survey

fabric

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const DatabaseType = "fabric"

Variables

This section is empty.

Functions

func GoquDialectOptions

func GoquDialectOptions() *sqlgen.SQLDialectOptions

func GoquExpressions

func GoquExpressions() *base.Expressions

Types

type Config

type Config struct {
	Host              string `json:"host"`
	Database          string `json:"database"`
	TenantID          string `json:"tenantId"`
	ClientID          string `json:"clientId"`
	ClientSecret      string `json:"clientSecret"`
	FabricWorkspaceID string `json:"fabricWorkspaceId,omitempty"`
	// Timeout bounds SQL connection dialing and the optional Fabric REST
	// bootstrap. It does not impose a timeout on SQL query execution.
	Timeout time.Duration `json:"timeout"`
}

Config contains the credentials required to connect to a Microsoft Fabric SQL endpoint.

func (Config) ConnectionString

func (c Config) ConnectionString() string

ConnectionString returns the go-mssqldb Azure AD connection string. Fabric SQL endpoints always use port 1433.

func (*Config) Parse

func (c *Config) Parse(input json.RawMessage) error

Parse decodes and validates a Fabric configuration.

type DB

type DB struct {
	*base.DB
}

func NewDB

func NewDB(configJSON json.RawMessage) (*DB, error)

NewDB creates a Microsoft Fabric SQL endpoint client.

Jump to

Keyboard shortcuts

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