pg

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 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 DB

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

func New

func New(url string) (*DB, error)

func (*DB) AddComment

func (db *DB) AddComment(ctx context.Context, c storage.Comment) (int, error)

func (*DB) DeleteComment

func (db *DB) DeleteComment(ctx context.Context, commentID int) error

func (*DB) GetCommentsByArticleID

func (db *DB) GetCommentsByArticleID(ctx context.Context, articleID int) ([]storage.Comment, error)

Jump to

Keyboard shortcuts

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