From sets the source of the step.
(table, column string, v ...any)
| 101 | |
| 102 | // From sets the source of the step. |
| 103 | func From(table, column string, v ...any) StepOption { |
| 104 | return func(s *Step) { |
| 105 | s.From.Table = table |
| 106 | s.From.Column = column |
| 107 | if len(v) > 0 { |
| 108 | s.From.V = v[0] |
| 109 | } |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | // To sets the destination of the step. |
| 114 | func To(table, column string) StepOption { |
no outgoing calls