postgres

package
v0.0.0-...-09d31aa Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: ISC Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNickConflict = errors.New("nick already in use by another character")

Functions

func TSQueryFromSearch

func TSQueryFromSearch(search string) string

TSQueryFromSearch generates a TS query from a typical search string.

Types

type DB

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

func Connect

func Connect(cfg config.Database) (*DB, error)

func (*DB) Changes

func (d *DB) Changes() repositories.ChangeRepository

func (*DB) Channels

func (d *DB) Channels() repositories.ChannelRepository

func (*DB) Chapters

func (d *DB) Chapters() repositories.ChapterRepository

func (*DB) Characters

func (d *DB) Characters() repositories.CharacterRepository

func (*DB) Close

func (d *DB) Close(context.Context) error

func (*DB) Comments

func (d *DB) Comments() repositories.CommentRepository

func (*DB) Files

func (d *DB) Files() repositories.FileRepository

func (*DB) Keys

func (d *DB) Keys() repositories.KeyRepository

func (*DB) Logs

func (d *DB) Logs() repositories.LogRepository

func (*DB) Posts

func (d *DB) Posts() repositories.PostRepository

func (*DB) Stories

func (d *DB) Stories() repositories.StoryRepository

func (*DB) Tags

func (d *DB) Tags() repositories.TagRepository

func (*DB) Users

func (d *DB) Users() repositories.UserRepository

Directories

Path Synopsis
Package psqlcore contains the generated code for the PostgresSQL drivers.
Package psqlcore contains the generated code for the PostgresSQL drivers.

Jump to

Keyboard shortcuts

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