db

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2017 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 Column

type Column struct {
	ColumnName       string
	DataType         string
	CastTypeUsing    string
	NotNull          bool
	Default          string
	NumericPrecision int
	NumericScale     int
	Array            bool
}

func (*Column) Err

func (c *Column) Err() error

type ColumnNode

type ColumnNode struct {
	Column Column
}

func (*ColumnNode) Err

func (cn *ColumnNode) Err() error

type DatabaseNode

type DatabaseNode struct {
	SchemaNodes    []SchemaNode
	ExtensionNodes []ExtensionNode
}

func (*DatabaseNode) Err

func (dn *DatabaseNode) Err() error

type Extension

type Extension struct {
	ExtName string
}

type ExtensionNode

type ExtensionNode struct {
	Extension Extension
}

type Index

type Index struct {
	TableName string
	IndexName string
	Exprs     []string
	Unique    bool
	Primary   bool
}

type IndexNode

type IndexNode struct {
	Index Index
}

type Schema

type Schema struct {
	SchemaName string
}

type SchemaNode

type SchemaNode struct {
	Schema     Schema
	TableNodes []TableNode
}

func (*SchemaNode) Err

func (sn *SchemaNode) Err() error

type Table

type Table struct {
	TableName string
}

type TableNode

type TableNode struct {
	Table       Table
	ColumnNodes []ColumnNode
	IndexNodes  []IndexNode
}

func (*TableNode) Err

func (tn *TableNode) Err() error

Jump to

Keyboard shortcuts

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