Close closes the underlying database connection pool.
()
| 42 | |
| 43 | // Close closes the underlying database connection pool. |
| 44 | func (d *Datasource) Close() error { |
| 45 | if d.Conn != nil { |
| 46 | return d.Conn.Close() |
| 47 | } |
| 48 | return nil |
| 49 | } |
| 50 | |
| 51 | // NewDataSource initializes a new database connection. |
| 52 | func NewDataSource(configuration *config.Configuration) (IDataSource, error) { |
no outgoing calls