driver

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 6 Imported by: 4

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.Schema, error)
}

func LoadDriver

func LoadDriver(name string) (Driver, error)

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