dbsystem

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 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) dbdefs.Adapter

func Register

func Register(name string, createFunc adapterCreateFunc)

Types

type DBAdapterConfig

type DBAdapterConfig struct {
	// DBUser is part of credentials for the database connection
	DBUser string

	// DBPassword is part of credentials for the database connection
	DBPassword string

	// DBName is the database name to use, for example: db
	DBName string

	// FinalConnectionString is auto-generated.
	// This will either be DefaultConnectionString or the value of DB_ADDR
	FinalConnectionString string

	// InsertOnMissingEntryToUpdate is used to determine
	// whether to insert when an object to be updated is not found.
	// This is useful when you want to use updates to both insert and
	// update depending on whether the entry exists or not
	InsertOnMissingEntryToUpdate bool
}

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