NewClient creates a new client configured with the given options.
(opts ...Option)
| 87 | |
| 88 | // NewClient creates a new client configured with the given options. |
| 89 | func NewClient(opts ...Option) *Client { |
| 90 | client := &Client{config: newConfig(opts...)} |
| 91 | client.init() |
| 92 | return client |
| 93 | } |
| 94 | |
| 95 | func (c *Client) init() { |
| 96 | c.Schema = migrate.NewSchema(c.driver) |
no test coverage detected