db

package
v0.0.0-...-4df958d Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(args DialInfo) (core.Database, error)

Dial creates a new connection to the specified database.

func EscapeKeys

func EscapeKeys(input map[string]interface{}) map[string]interface{}

EscapeKeys is used to escape bad keys in a map. A statusDoc without escaped keys is broken.

func UnescapeKeys

func UnescapeKeys(input map[string]interface{}) map[string]interface{}

UnescapeKeys is used to restore escaped keys from a map to their original values.

Types

type DialInfo

type DialInfo struct {
	Hostname string
	Port     string
	Username string
	Password string
	SSL      bool
}

DialInfo holds information needed to connect to the database.

Jump to

Keyboard shortcuts

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