bulk

package
v0.0.0-...-0e97cbf Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	ID   int64
	Name string
	Bio  *string
}

func NewAuthor

func NewAuthor(id int64) Author

NewAuthor creates a new Author with the given ID.

func UpdateAuthor

func UpdateAuthor(id int64) Author

UpdateAuthor updates an existing Author.

type Bulk

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

func New

func New(db *sql.DB) (*Bulk, error)

func (*Bulk) BulkCreateAuthor

func (b *Bulk) BulkCreateAuthor(ctx context.Context, authors []Author) error

func (*Bulk) BulkUpdateAuthor

func (b *Bulk) BulkUpdateAuthor(ctx context.Context, authors []Author) error

func (*Bulk) CreateAuthor

func (b *Bulk) CreateAuthor(ctx context.Context, a Author) error

func (*Bulk) ID

func (b *Bulk) ID() int64

func (*Bulk) MaxID

func (b *Bulk) MaxID() int64

func (*Bulk) UpdateAuthor

func (b *Bulk) UpdateAuthor(ctx context.Context, a Author) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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