Documentation ¶
Index ¶
- func ClientForTest(t testing.TB, opts ...ent.Option) *ent.Client
- func NewClient(t TestingT, opts ...Option) *ent.Client
- func Open(t TestingT, driverName, dataSourceName string, opts ...Option) *ent.Client
- func ResetTables(t testing.TB, client *ent.Client)
- func StartDockertest(t testing.TB) string
- type Option
- type TestingT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartDockertest ¶ added in v0.11.14
Types ¶
type Option ¶ added in v0.13.52
type Option func(*options)
Option configures client creation.
func WithMigrateOptions ¶ added in v0.13.52
func WithMigrateOptions(opts ...schema.MigrateOption) Option
WithMigrateOptions forwards options to auto migration.
func WithOptions ¶ added in v0.13.52
WithOptions forwards options to client creation.
Click to show internal directories.
Click to hide internal directories.