base

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	Dialect string
}

Base is a partial implementation of migration.Dialect. It provides the TypeString method.

func (*Base) TypeString

func (d *Base) TypeString(dt datatype.Datatype) (string, error)

TypeString is implemented because, with most datatype.Datatype values in most SQL dialects, the datatype.Datatype String() method will probably be correct. Dialect-specific implementations can extend this TypeString method with any specific exceptions. For one example, check the mysql.migrator's TypeString method.

Jump to

Keyboard shortcuts

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