models

package
v0.0.0-...-95ae7e9 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	Name string
	Type string
}

type ColumnSchema

type ColumnSchema struct {
	TableName              string
	ColumnName             string
	IsNullable             string
	DataType               string
	CharacterMaximumLength sql.NullInt64
	NumericPrecision       sql.NullInt64
	NumericScale           sql.NullInt64
	ColumnType             string
	ColumnKey              string
}

type DBConnection

type DBConnection interface {
	Dsn() string
}

type DataGenerator

type DataGenerator struct {
	TimeStamp  time.Time
	Type       string
	ModelName  string
	Attributes []Attribute
	Imports    map[string]Import
}

type DeliveryGenerator

type DeliveryGenerator struct {
	Data    []DataGenerator
	Imports map[string]Import
}

type Import

type Import struct {
	Alias string
	Path  string
}

type MysqlConnection

type MysqlConnection struct {
	Host     string
	Port     string
	User     string
	Password string
	DBName   string
}

func (*MysqlConnection) Dsn

func (m *MysqlConnection) Dsn() string

Jump to

Keyboard shortcuts

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