psql

package
v0.0.0-...-fe09838 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: BSD-3-Clause Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateDB

func MigrateDB(database *sql.DB, migrationsPath string, driver Driver) error

MigrateDB ...

Types

type DB

type DB struct {
	Schema   string `yaml:"schema"`
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	IP       string `yaml:"ip"`
	Port     uint16 `yaml:"port"`
	DataBase string `yaml:"database"`
	SSL      string `yaml:"ssl"`

	MigrationsPath string `yaml:"migrations_path"`
}

DB ...

func (DB) GetDBURL

func (db DB) GetDBURL() string

GetDBURL ...

type Driver

type Driver = string

Driver ...

const (
	// PGDriver ...
	PGDriver Driver = "postgres"
)

Jump to

Keyboard shortcuts

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