Versions in this module Expand all Collapse all v1 v1.0.0 May 30, 2024 Changes in this version + func CreateDriver(driverName, dsn string, enableTrace, enableMetrics bool) (*entSql.Driver, error) + type EntClient struct + func NewEntClient[T entClientInterface](db T, drv *entSql.Driver) *EntClient[T] + func (c *EntClient[T]) Client() T + func (c *EntClient[T]) Close() error + func (c *EntClient[T]) DB() *sql.DB + func (c *EntClient[T]) Driver() *entSql.Driver + func (c *EntClient[T]) Exec(ctx context.Context, query string, args, v any) error + func (c *EntClient[T]) Query(ctx context.Context, query string, args, v any) error + func (c *EntClient[T]) SetConnectionOption(maxIdleConnections, maxOpenConnections int, connMaxLifetime time.Duration)