schema

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	DBName          string
	DBType          string
	PrimaryKey      bool
	AutoIncrement   bool
	HasDefaultValue bool
	DefaultValue    string
	NotNull         bool
	Unique          bool
	UniqueName      string
	UniqueIndex     bool
	UniqueIndexName string
	Comment         string
	GoType          FieldGoType
}

type FieldGoType

type FieldGoType string
const (
	Bool   FieldGoType = "bool"
	Int    FieldGoType = "int"
	Uint   FieldGoType = "uint"
	Float  FieldGoType = "float"
	String FieldGoType = "string"
	Time   FieldGoType = "time"
)

Jump to

Keyboard shortcuts

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