dbsystem

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Names []string

Functions

func NewAdapter

func NewAdapter(system DBSystem, config *DBAdapterConfig) database.Adapter

func Register

func Register(name string, createFunc adapterCreateFunc)

Types

type DBAdapterConfig

type DBAdapterConfig struct {
	// Database user
	DBUser string

	// Database password
	DBPassword string

	// Database name
	DBName string

	// Final connection string (auto-generated)
	// This will either be DefaultConnectionString or the value of DB_ADDR
	FinalConnectionString string
}

type DBSystem

type DBSystem int

func FromString

func FromString(name string) DBSystem

func (DBSystem) String

func (dbs DBSystem) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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