Documentation
¶
Overview ¶
Package virtual is a registry of connections a host answers from its own configuration rather than from stored rows: connection://<namespace>/<name> references resolved per request, any of which can be the default a profile with no connection of its own runs against.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
// Reference is the connection://<namespace>/<name> the entry answers.
Reference string
// Type is the models.ConnectionType* of the connection Resolve returns.
Type string
// Default makes the entry the connection a provider that can use Type runs
// against when its profile names none. At most one entry per Type.
Default bool
// Resolve answers the connection for the request ctx carries.
Resolve func(ctx dbcontext.Context) (*models.Connection, error)
}
Entry is one virtual connection.