Documentation
¶
Overview ¶
Package sqlserver observes and executes dependency-aware scripts on SQL Server.
Index ¶
- func Batches(name, content string) ([]string, error)
- type Adoption
- type AdoptionEvidence
- type AdoptionOptions
- type ApplyOptions
- type Connection
- type ContinuationError
- type ExecutionError
- type Function
- type Options
- type Preview
- type Result
- type Session
- func (s *Session) Adopt(ctx context.Context, opts AdoptionOptions) (err error)
- func (s *Session) Apply(ctx context.Context, opts ApplyOptions) (Result, error)
- func (s *Session) Barrier(ctx context.Context, run func(context.Context, Connection) error) error
- func (s *Session) Close() error
- func (s *Session) Inspect(ctx context.Context, phase scripts.Phase) (Preview, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Adoption ¶
type Adoption struct {
Preview Preview `json:"preview"`
Evidence []AdoptionEvidence `json:"evidence"`
Hash string `json:"hash"`
}
func AdoptionPlan ¶
func AdoptionPlan(preview Preview, evidence []AdoptionEvidence) (Adoption, error)
type AdoptionEvidence ¶
type AdoptionOptions ¶
type AdoptionOptions struct {
Adoption Adoption
Verify func(context.Context, Connection) error
}
type ApplyOptions ¶
type Connection ¶
type Connection interface {
// contains filtered or unexported methods
}
Connection is the owned SQL session available during a deployment barrier.
type ContinuationError ¶
type ContinuationError struct{ Preview Preview }
func (*ContinuationError) Error ¶
func (e *ContinuationError) Error() string
type ExecutionError ¶
func (*ExecutionError) Error ¶
func (e *ExecutionError) Error() string
func (*ExecutionError) Unwrap ¶
func (e *ExecutionError) Unwrap() error
type Preview ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func (*Session) Adopt ¶
func (s *Session) Adopt(ctx context.Context, opts AdoptionOptions) (err error)
Adopt records independently verified current state without executing script bodies.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package sqlservertest provisions private, temporary SQL Server fixtures for Ginkgo suites.
|
Package sqlservertest provisions private, temporary SQL Server fixtures for Ginkgo suites. |
Click to show internal directories.
Click to hide internal directories.