NewChain creates a new sql-chain struct.
(c *Config)
| 134 | |
| 135 | // NewChain creates a new sql-chain struct. |
| 136 | func NewChain(c *Config) (chain *Chain, err error) { |
| 137 | return NewChainWithContext(context.Background(), c) |
| 138 | } |
| 139 | |
| 140 | // NewChainWithContext creates a new sql-chain struct with context. |
| 141 | func NewChainWithContext(ctx context.Context, c *Config) (chain *Chain, err error) { |