Documentation ¶
Index ¶
- func Debug(d dialect.Driver, logger ...func(...any)) dialect.Driver
- func NewDriver(c *Config) (*sql.Driver, error)
- type Config
- type CreateTime
- type DebugDriver
- func (d *DebugDriver) BeginTx(ctx context.Context, opts *sql.TxOptions) (dialect.Tx, error)
- func (d *DebugDriver) Exec(ctx context.Context, query string, args, v any) error
- func (d *DebugDriver) ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error)
- func (d *DebugDriver) Query(ctx context.Context, query string, args, v any) error
- func (d *DebugDriver) QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error)
- func (d *DebugDriver) Tx(ctx context.Context) (dialect.Tx, error)
- type DebugTx
- func (d *DebugTx) Commit() error
- func (d *DebugTx) Exec(ctx context.Context, query string, args, v any) error
- func (d *DebugTx) ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error)
- func (d *DebugTx) Query(ctx context.Context, query string, args, v any) error
- func (d *DebugTx) QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error)
- type Time
- type TimeWithDelete
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateTime ¶
func (CreateTime) Indexes ¶
func (CreateTime) Indexes() []ent.Index
type DebugDriver ¶
type DebugDriver struct { dialect.Driver // underlying driver. // contains filtered or unexported fields }
DebugDriver is a driver that logs all driver operations.
func (*DebugDriver) BeginTx ¶
BeginTx adds an log-id for the transaction and calls the underlying driver BeginTx command if it is supported.
func (*DebugDriver) ExecContext ¶
func (d *DebugDriver) 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 (*DebugDriver) QueryContext ¶
func (d *DebugDriver) 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 DebugTx ¶
type DebugTx struct { dialect.Tx // underlying transaction. // contains filtered or unexported fields }
DebugTx is a transaction implementation that logs all transaction operations.
func (*DebugTx) ExecContext ¶
ExecContext logs its params and calls the underlying transaction ExecContext method if it is supported.
type TimeWithDelete ¶
func (TimeWithDelete) Indexes ¶
func (TimeWithDelete) Indexes() []ent.Index
Click to show internal directories.
Click to hide internal directories.