pg

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() db.DB

Types

type Pg

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

func (*Pg) Close

func (p *Pg) Close() error

func (*Pg) GetTopicID

func (p *Pg) GetTopicID(slug []string) (int, error)

func (*Pg) ListTopics

func (p *Pg) ListTopics(parent_id int) ([]db.Topic, error)

func (*Pg) Open

func (p *Pg) Open() error

Jump to

Keyboard shortcuts

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