delete

package
v0.16.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShowSQL added in v0.5.4

func ShowSQL(b bool)

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder represent delete DML builder

func NewBuilder

func NewBuilder(table string, columns []string, dialect *info.Dialect, batchSize int) (*Builder, error)

NewBuilder return insert builder

func (*Builder) Build

func (b *Builder) Build(options ...option.Option) string

Build builds update statement

type Service

type Service struct {
	*config.Config
	// contains filtered or unexported fields
}

Service represents deleter

func New

func New(ctx context.Context, db *sql.DB, tableName string, options ...option.Option) (*Service, error)

New creates an deleter

func (*Service) Exec

func (s *Service) Exec(ctx context.Context, any interface{}, options ...option.Option) (int64, error)

Exec runs delete statements

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL