Documentation
¶
Index ¶
- func AddFuncMap(fm template.FuncMap)
- func ULID(v any, err error) ulid.ULID
- type CommandFunc
- type CommandInput
- type CommandOutput
- type Database
- type Edge
- type Fixture
- func (f *Fixture) Apply() error
- func (f *Fixture) Edge(uid, vid int64) graph.Edge
- func (f *Fixture) From(id int64) graph.Nodes
- func (f *Fixture) GetField(table, key, field string) (any, error)
- func (f *Fixture) GetNode(label [2]string) *Node
- func (f *Fixture) HasEdgeBetween(xid, yid int64) bool
- func (f *Fixture) HasEdgeFromTo(uid, vid int64) bool
- func (f *Fixture) Node(id int64) graph.Node
- func (f *Fixture) Nodes() graph.Nodes
- func (f *Fixture) SetRecord(table, key string, record Record)
- func (f *Fixture) To(id int64) graph.Nodes
- type Node
- type Nodes
- type PostgresWriter
- type Record
- type RecordError
- type RedisWriter
- type Runner
- type Table
- type TableOptions
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFuncMap ¶
Types ¶
type CommandFunc ¶
type CommandFunc func(in *CommandInput) (*CommandOutput, error)
type CommandInput ¶
type CommandOutput ¶
type Edge ¶
type Edge struct {
// contains filtered or unexported fields
}
func (*Edge) ReversedEdge ¶
type Fixture ¶
type Fixture struct { Runner *Runner Context context.Context // TODO: Should check for one of? File string Body io.Reader BodyFormat string // If defined, the fixture body will be parsed as a Go text/template string // and executed with TemplateData as its data. TemplateData map[string]any PrintJSON bool // contains filtered or unexported fields }
func (*Fixture) HasEdgeBetween ¶
func (*Fixture) HasEdgeFromTo ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) AppendFrom ¶
type PostgresWriter ¶
type RecordError ¶
func (*RecordError) Error ¶
func (e *RecordError) Error() string
type Runner ¶
type Runner struct { // The default name for the primary key field. // This value can be overwritten by TableOptions. // Default: "id" PrimaryKeyName string // The writer used for this runner. Writer Writer TableOptions map[string]*TableOptions TableAliases map[string]string // contains filtered or unexported fields }
type Table ¶
func GetDefaultValues ¶
type TableOptions ¶
Click to show internal directories.
Click to hide internal directories.