Documentation
¶
Overview ¶
Package dbsystem revolves around database system management, abstraction and registration
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Names []string
Functions ¶
func NewAdapter ¶
func NewAdapter(system DBSystem, config *DBAdapterConfig) dbdefs.Adapter
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 }
Directories
¶
Path | Synopsis |
---|---|
Package autoregister is solely used to import database systems with side-effects.
|
Package autoregister is solely used to import database systems with side-effects. |
Click to show internal directories.
Click to hide internal directories.