sqltypes

package
v0.0.0-...-e964ed6 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertType

func AssertType(columnType string, nullable string) string

AssertType figures out which go type should be used, based on the SQL type.

func NeedsImport

func NeedsImport(typ string) (imp string, ok bool)

NeedsImport handles adding the imports for types that require them.

Types

type Explain

type Explain struct {
	Field   *string
	Type    *string
	Null    *string
	Key     *string
	Default *string
	Extra   *string
}

Explain wraps the explain query results for a given table

type SQLType

type SQLType struct {
	// contains filtered or unexported fields
}

SQLType unwraps a SQL data type

Jump to

Keyboard shortcuts

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