driver

package
v0.0.1-rc8 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 4 Imported by: 5

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.Schemaer, 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