driver

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 3 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 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 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