driver

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 4 Imported by: 6 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Mysql         = "mysql"
	FileMysql     = "file+mysql"
	FileMysqlTidb = "file+tidb"
)

Variables

This section is empty.

Functions

func DriverNames

func DriverNames() []string

func RegisterDriver

func RegisterDriver(name string, d Driver)

Types

type Driver

type Driver interface {
	InspectSchema(context.Context, *InspectOption) (*ens.MixinSchema, error)
}

func LoadDriver

func LoadDriver(name string) (Driver, bool)

type InspectOption

type InspectOption struct {
	// URL See: https://atlasgo.io/url
	URL string
	// sql data, for file
	Data string
	// InspectOptions describes options for Inspector.
	schema.InspectOptions
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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