oscar

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReservedWords = hashset.New(funk.Map(ReservedWordsList, func(s string) interface{} { return s }).([]interface{})...)
View Source
var ReservedWordsList = []string{}/* 379 elements not displayed */

Functions

func IsReservedWord

func IsReservedWord(v string) bool

Types

type Config

type Config struct {
	User   string            // Username
	Passwd string            // Password (requires User)
	Host   string            // Host
	Port   int               // Port
	DBName string            // Database name
	Params map[string]string // Connection parameters
}

func NewConfig

func NewConfig() *Config

func (*Config) FormatDSN

func (cfg *Config) FormatDSN() string

FormatDSN formats the given Config into a DSN string which can be passed to the driver. USER/PASSWD@HOST:PORT/DB_NAME

Jump to

Keyboard shortcuts

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