NewClient creates a new client configured with the given options.
(opts ...Option)
| 59 | |
| 60 | // NewClient creates a new client configured with the given options. |
| 61 | func NewClient(opts ...Option) *Client { |
| 62 | client := &Client{config: newConfig(opts...)} |
| 63 | client.init() |
| 64 | return client |
| 65 | } |
| 66 | |
| 67 | func (c *Client) init() { |
| 68 | c.Schema = migrate.NewSchema(c.driver) |