Documentation ¶
Index ¶
- func CreateDriver(driverName, dsn string, enableTrace, enableMetrics bool) (*entSql.Driver, error)
- type EntClient
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.