package postgres type options struct { applySeedModel bool skipSchemaIsolation bool } type Option func(*options) // ApplySeedModel should be passed in order to apply edgesql migrations to database func ApplySeedModel() Option { return func(o *options) { o.applySeedModel = true } } // SkipSchemaIsolution should be passed if you don't want the framework to create isolated schemas for // every test func SkipSchemaIsolation() Option { return func(o *options) { o.skipSchemaIsolation = true } } func makeOptions(opts ...Option) *options { options := &options{} for _, o := range opts { o(options) } return options }