dao

package
v0.0.0-...-32fa971 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

* * Generated by go-doudou v2.0.1. * You can edit it as your need.

* * Generated by go-doudou v2.0.1. * You can edit it as your need.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WordCloudTaskDao

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

func NewWordCloudTaskDao

func NewWordCloudTaskDao(querier wrapper.GddDB) WordCloudTaskDao

func (WordCloudTaskDao) AfterBulkSaveHook

func (receiver WordCloudTaskDao) AfterBulkSaveHook(ctx context.Context, data []*domain.WordCloudTask, lastInsertID int64, affected int64)

func (WordCloudTaskDao) AfterDeleteManyHook

func (receiver WordCloudTaskDao) AfterDeleteManyHook(ctx context.Context, data []*domain.WordCloudTask, where *query.Where, affected int64)

func (WordCloudTaskDao) AfterSaveHook

func (receiver WordCloudTaskDao) AfterSaveHook(ctx context.Context, data *domain.WordCloudTask, lastInsertID int64, affected int64)

func (WordCloudTaskDao) AfterUpdateManyHook

func (receiver WordCloudTaskDao) AfterUpdateManyHook(ctx context.Context, data []*domain.WordCloudTask, where *query.Where, affected int64)

func (WordCloudTaskDao) BeforeBulkSaveHook

func (receiver WordCloudTaskDao) BeforeBulkSaveHook(ctx context.Context, data []*domain.WordCloudTask)

func (WordCloudTaskDao) BeforeDeleteManyHook

func (receiver WordCloudTaskDao) BeforeDeleteManyHook(ctx context.Context, data []*domain.WordCloudTask, where *query.Where)

func (WordCloudTaskDao) BeforeReadManyHook

func (receiver WordCloudTaskDao) BeforeReadManyHook(ctx context.Context, page *query.Page, where *query.Where)

func (WordCloudTaskDao) BeforeSaveHook

func (receiver WordCloudTaskDao) BeforeSaveHook(ctx context.Context, data *domain.WordCloudTask)

func (WordCloudTaskDao) BeforeUpdateManyHook

func (receiver WordCloudTaskDao) BeforeUpdateManyHook(ctx context.Context, data []*domain.WordCloudTask, where *query.Where)

func (WordCloudTaskDao) BulkInsert

func (receiver WordCloudTaskDao) BulkInsert(ctx context.Context, data []*domain.WordCloudTask) (int64, error)

func (WordCloudTaskDao) BulkInsertIgnore

func (receiver WordCloudTaskDao) BulkInsertIgnore(ctx context.Context, data []*domain.WordCloudTask) (int64, error)

func (WordCloudTaskDao) BulkUpsert

func (receiver WordCloudTaskDao) BulkUpsert(ctx context.Context, data []*domain.WordCloudTask) (int64, error)

func (WordCloudTaskDao) BulkUpsertSelect

func (receiver WordCloudTaskDao) BulkUpsertSelect(ctx context.Context, data []*domain.WordCloudTask, columns []string) (int64, error)

func (WordCloudTaskDao) CountMany

func (receiver WordCloudTaskDao) CountMany(ctx context.Context, where query.Where) (int, error)

func (WordCloudTaskDao) DeleteMany

func (receiver WordCloudTaskDao) DeleteMany(ctx context.Context, where query.Where) (int64, error)

func (WordCloudTaskDao) DeleteManySoft

func (receiver WordCloudTaskDao) DeleteManySoft(ctx context.Context, where query.Where) (int64, error)

func (WordCloudTaskDao) Get

func (receiver WordCloudTaskDao) Get(ctx context.Context, dest *domain.WordCloudTask, id int) error

func (WordCloudTaskDao) Insert

func (receiver WordCloudTaskDao) Insert(ctx context.Context, data *domain.WordCloudTask) (int64, error)

func (WordCloudTaskDao) InsertIgnore

func (receiver WordCloudTaskDao) InsertIgnore(ctx context.Context, data *domain.WordCloudTask) (int64, error)

func (WordCloudTaskDao) PageMany

func (receiver WordCloudTaskDao) PageMany(ctx context.Context, dest *WordCloudTaskPageRet, page query.Page, where query.Where) error

func (WordCloudTaskDao) SelectMany

func (receiver WordCloudTaskDao) SelectMany(ctx context.Context, dest *[]domain.WordCloudTask, where query.Where) error

func (WordCloudTaskDao) Update

func (receiver WordCloudTaskDao) Update(ctx context.Context, data *domain.WordCloudTask) (int64, error)

func (WordCloudTaskDao) UpdateMany

func (receiver WordCloudTaskDao) UpdateMany(ctx context.Context, data []*domain.WordCloudTask, where query.Where) (int64, error)

func (WordCloudTaskDao) UpdateManyNoneZero

func (receiver WordCloudTaskDao) UpdateManyNoneZero(ctx context.Context, data []*domain.WordCloudTask, where query.Where) (int64, error)

func (WordCloudTaskDao) UpdateNoneZero

func (receiver WordCloudTaskDao) UpdateNoneZero(ctx context.Context, data *domain.WordCloudTask) (int64, error)

func (WordCloudTaskDao) Upsert

func (receiver WordCloudTaskDao) Upsert(ctx context.Context, data *domain.WordCloudTask) (int64, error)

Upsert With ON DUPLICATE KEY UPDATE, the affected-rows value per row is 1 if the row is inserted as a new row, 2 if an existing row is updated, and 0 if an existing row is set to its current values. If you specify the CLIENT_FOUND_ROWS flag to the mysql_real_connect() C API function when connecting to mysqld, the affected-rows value is 1 (not 0) if an existing row is set to its current values. https://dev.mysql.com/doc/refman/5.7/en/insert-on-duplicate.html

func (WordCloudTaskDao) UpsertNoneZero

func (receiver WordCloudTaskDao) UpsertNoneZero(ctx context.Context, data *domain.WordCloudTask) (int64, error)

type WordCloudTaskPageRet

type WordCloudTaskPageRet struct {
	Items    []domain.WordCloudTask
	PageNo   int
	PageSize int
	Total    int
	HasNext  bool
}

Jump to

Keyboard shortcuts

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