Documentation ¶
Index ¶
- type EntMysqlDriver
- func (d *EntMysqlDriver) Exec(ctx context.Context, query string, args, v any) error
- func (d *EntMysqlDriver) ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error)
- func (d *EntMysqlDriver) Query(ctx context.Context, query string, args, v any) error
- func (d *EntMysqlDriver) QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error)
- type EntMysqlOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntMysqlDriver ¶
type EntMysqlDriver struct { dialect.Driver // underlying driver. // contains filtered or unexported fields }
func DefaultMysqlDriver ¶
func DefaultMysqlDriver(driver dialect.Driver) *EntMysqlDriver
func NewMysqlDriver ¶
func NewMysqlDriver(driver dialect.Driver, options ...EntMysqlOption) *EntMysqlDriver
func (*EntMysqlDriver) ExecContext ¶
func (d *EntMysqlDriver) ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error)
ExecContext logs its params and calls the underlying driver ExecContext method if it is supported.
func (*EntMysqlDriver) QueryContext ¶
func (d *EntMysqlDriver) QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error)
QueryContext logs its params and calls the underlying driver QueryContext method if it is supported.
type EntMysqlOption ¶
type EntMysqlOption interface {
// contains filtered or unexported methods
}
func WithTrace ¶
func WithTrace(isTrace bool) EntMysqlOption
Click to show internal directories.
Click to hide internal directories.