postgres

package
v0.0.0-...-94de3ef Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

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

func Connect

func Connect(ctx context.Context, postgresDSN string) (*Connection, error)

func (*Connection) Close

func (c *Connection) Close()

func (*Connection) Greetings

func (c *Connection) Greetings(ctx context.Context) ([]internal.Greeting, error)

func (*Connection) Migrate

func (c *Connection) Migrate(ctx context.Context, migrationsPath string, skipFirstMigration bool) error

func (*Connection) SaveGreeting

func (c *Connection) SaveGreeting(ctx context.Context, g *internal.Greeting) error

Jump to

Keyboard shortcuts

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