postgres

package
v0.0.0-...-1e34430 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Username      string
	Password      string
	Host          string
	Port          string
	DBName        string
	SSL           bool
	RunMigrations bool
}

Config is a configuration object for postgres repos

type Repository

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

Repository is a postgres implementation of repository

func NewRepository

func NewRepository(config Config) (Repository, error)

NewRepository creates a new postgres repository

Jump to

Keyboard shortcuts

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