postgres

package
v0.0.0-...-5ef4ed8 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

func New

func New(db *sqlx.DB) *Repository

func (*Repository) DeleteByID

func (r *Repository) DeleteByID(id int) error

func (*Repository) Save

func (r *Repository) Save(c *models.Content) (*models.Content, error)

func (*Repository) SelectAll

func (r *Repository) SelectAll() ([]*models.Content, error)

func (*Repository) SelectByID

func (r *Repository) SelectByID(id int) (*models.Content, error)

func (*Repository) Update

func (r *Repository) Update(id int, c *models.Content) error

Jump to

Keyboard shortcuts

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