configfile

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0 Imports: 8 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package configfile contains primitives needed to manage a configuration file with the syntax of PostgreSQL

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConnectionString

func CreateConnectionString(parameters map[string]string) string

CreateConnectionString create a PostgreSQL connection string given the passed parameters, escaping them as necessary

func RemoveOptionFromConfigurationContents

func RemoveOptionFromConfigurationContents(content string, option string) string

RemoveOptionFromConfigurationContents deletes the lines containing the given option a configuration file whose content is passed

func UpdateConfigurationContents

func UpdateConfigurationContents(content string, options map[string]string) (string, error)

UpdateConfigurationContents search and replace options in a configuration file whose content is passed

func UpdatePostgresConfigurationFile

func UpdatePostgresConfigurationFile(fileName string, options map[string]string) (changed bool, err error)

UpdatePostgresConfigurationFile search and replace options in a Postgres configuration file. If the configuration file doesn't exist, it will be written.

Types

This section is empty.

Jump to

Keyboard shortcuts

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