driver

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package driver defines database driver integration for opening connections and exposing dialects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionInfo added in v0.4.2

type ConnectionInfo struct {
	System        string
	Name          string
	Namespace     string
	ServerAddress string
	ServerPort    int
}

ConnectionInfo describes connection metadata that can be exposed for traces.

type ConnectionInfoProvider added in v0.4.2

type ConnectionInfoProvider interface {
	ConnectionInfo() ConnectionInfo
}

ConnectionInfoProvider exposes semantic connection metadata for observability.

type Driver

type Driver interface {
	Validate() error
	Name() string
	Dialect() dialect.Dialect
	Open(context.Context) (*sql.DB, error)
}

Driver provides database-specific connection and dialect behavior.

type InspectorProvider added in v0.4.2

type InspectorProvider interface {
	Inspector() schema.Inspector
}

InspectorProvider exposes the schema inspector associated with a driver.

type PreflightConfig added in v0.1.7

type PreflightConfig struct {
	Enabled      bool
	Root         string
	SnapshotPath string
	SchemaName   string
}

PreflightConfig describes an optional schema preflight check.

type PreflightProvider added in v0.1.7

type PreflightProvider interface {
	PreflightConfig() PreflightConfig
}

PreflightProvider exposes optional schema preflight settings for Open().

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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