Documentation ¶
Index ¶
- type FixtureData
- type FixtureFields
- type FixtureRecords
- type FixtureTables
- type Iterator
- type Node
- func (me *Node) Add(node *Node) *Node
- func (me *Node) EqualTo(other *Node) bool
- func (me *Node) GreaterThan(other *Node) bool
- func (me *Node) HasDependencyOf(name string) bool
- func (me *Node) LessThan(other *Node) bool
- func (me *Node) Maximum() *Node
- func (me *Node) Minimum() *Node
- func (me *Node) WalkBackward(iterator func(me *Node))
- func (me *Node) WalkForward(iterator func(me *Node))
- type ObjectSet
- type Relation
- type Row
- type Template
- type Tree
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FixtureData ¶
type FixtureData map[string]interface{}
type FixtureFields ¶
type FixtureFields map[string]interface{}
type FixtureRecords ¶
type FixtureRecords map[string]FixtureFields
type FixtureTables ¶
type FixtureTables map[string]FixtureRecords
type Node ¶
Node is a Node in a Binary Tree
func (*Node) GreaterThan ¶
GreaterThan return true if this row has dependancy of other.
func (*Node) HasDependencyOf ¶
HasDependencyOf is True if the Row have a dependancy with the other row pass
func (*Node) WalkBackward ¶
WalkBackward Call iterator for each node in this node's subtree in reverse order, high to low
func (*Node) WalkForward ¶
WalkForward Call iterator for each node in this node's subtree in order, low to high
type ObjectSet ¶
type ObjectSet struct { TableName string HasExtend bool Name string RangeReference string ParentName string Fields map[string]interface{} RangeRowReference []string DependancyReference []string }
ObjectSet contains metadatas necessary to build row
type Relation ¶
Relation represents a relation to an another record
func NewRelation ¶
NewRelation create a relation structure
type Row ¶
type Row struct { Name string TableName string Fields map[string]interface{} DependencyReference map[string]*Relation Left *Row Right *Row Pk interface{} }
Row represente data that will be persist in database
func (*Row) HasDependencies ¶
HasDependencies return true if this row has dependancies
func (*Row) HasDependencyOf ¶
HasDependencyOf is True if the Row have a dependancy with the other row pass
type Template ¶
Template Container to describe the common fields shared between ObjectSet
func NewTemplate ¶
NewTemplate is a factory to create a Template structure
type Tree ¶
Tree is a binary tree of record It sort record with relation
func (*Tree) Find ¶
Find and return the node with the supplied key in this subtree. Return nil if not found.
func (*Tree) First ¶
First Return the first (lowest) key and value in the tree, or nil, nil if the tree is empty.