Context returns the Selector context or Background if nil.
()
| 1716 | // Context returns the Selector context or Background |
| 1717 | // if nil. |
| 1718 | func (s *Selector) Context() context.Context { |
| 1719 | if s.ctx != nil { |
| 1720 | return s.ctx |
| 1721 | } |
| 1722 | return context.Background() |
| 1723 | } |
| 1724 | |
| 1725 | // Select returns a new selector for the `SELECT` statement. |
| 1726 | // |
no outgoing calls