(opts []Option)
| 45 | } |
| 46 | |
| 47 | func newOptions(opts []Option) *options { |
| 48 | o := &options{} |
| 49 | for _, opt := range opts { |
| 50 | opt(o) |
| 51 | } |
| 52 | return o |
| 53 | } |
| 54 | |
| 55 | // Open calls ent.Open and auto-run migration. |
| 56 | func Open(t TestingT, driverName, dataSourceName string, opts ...Option) *ent.Client { |