MCPcopy Index your code
hub / github.com/upper/db / Immutable

Interface Immutable

internal/immutable/immutable.go:6–14  ·  view source on GitHub ↗

Immutable represents an immutable chain that, if passed to FastForward, applies Fn() to every element of a chain, the first element of this chain is represented by Base().

Source from the content-addressed store, hash-verified

4// applies Fn() to every element of a chain, the first element of this chain is
5// represented by Base().
6type Immutable interface {
7 // Prev is the previous element on a chain.
8 Prev() Immutable
9 // Fn a function that is able to modify the passed element.
10 Fn(interface{}) error
11 // Base is the first element on a chain, there's no previous element before
12 // the Base element.
13 Base() interface{}
14}
15
16// FastForward applies all Fn methods in order on the given new Base.
17func FastForward(curr Immutable) (interface{}, error) {

Callers 8

result.goFile · 0.92
update.goFile · 0.92
delete.goFile · 0.92
insert.goFile · 0.92
paginate.goFile · 0.92
select.goFile · 0.92
logical_expr.goFile · 0.92
result.goFile · 0.92

Implementers 8

Resultinternal/sqladapter/result.go
updaterinternal/sqlbuilder/update.go
deleterinternal/sqlbuilder/delete.go
inserterinternal/sqlbuilder/insert.go
paginatorinternal/sqlbuilder/paginate.go
selectorinternal/sqlbuilder/select.go
LogicalExprGroupinternal/adapter/logical_expr.go
resultadapter/mongo/result.go

Calls

no outgoing calls

Tested by

no test coverage detected