cfg

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const MULTISQLPASS = "MULTISQLPASS" // nazwa ziennej środowiskowej z hasłem

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PassFile    string       `json:"Passfile"`
	PsqlExec    string       `json:"PsqlExec"`
	SqlDir      string       `json:"SqlDir"`
	Defaults    Connection   `json:"Defaults"`
	Connections []Connection `json:"Connections"`
}

func GetConfig

func GetConfig(params Parameters) (config Config, err error)

type Connection

type Connection struct {
	Host   string `json:"Host,omitempty"`
	User   string `json:"User,omitempty"`
	Port   uint   `json:"Port,omitempty"`
	DbName string `json:"DbName,omitempty"`
}

type Parameters

type Parameters struct {
	ConfigFile string
	Passfile   string
	OutDir     string
	SqlDir     string
	LogFile    string
	Verbose    bool
	AskPass    bool
	Version    bool
}

func GetParams

func GetParams() Parameters

Jump to

Keyboard shortcuts

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