Documentation
¶
Index ¶
- func GetAllURIParsers() map[string]types.URIParser
- func GetCapabilities(driverType types.DriverType) (types.DriverCapabilities, error)
- func GetURIParser(dbType string) (types.URIParser, error)
- func ParseURI(uri string) (string, types.DriverType, error)
- func Register(dbType string, factory DriverFactory)
- func RegisterCapabilities(driverType types.DriverType, caps types.DriverCapabilities)
- func RegisterURIParser(dbType string, parser types.URIParser)
- func ResolveScheme(scheme string) (types.DriverType, error)
- type DriverFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllURIParsers ¶
GetAllURIParsers returns all registered URI parsers
func GetCapabilities ¶
func GetCapabilities(driverType types.DriverType) (types.DriverCapabilities, error)
GetCapabilities retrieves registered driver capabilities
func GetURIParser ¶
GetURIParser retrieves a registered URI parser
func ParseURI ¶
func ParseURI(uri string) (string, types.DriverType, error)
ParseURI attempts to parse a URI using all registered parsers and returns the native database URI
func Register ¶
func Register(dbType string, factory DriverFactory)
Register registers a database driver factory
func RegisterCapabilities ¶
func RegisterCapabilities(driverType types.DriverType, caps types.DriverCapabilities)
RegisterCapabilities registers driver capabilities
func RegisterURIParser ¶
RegisterURIParser registers a URI parser for a specific driver
func ResolveScheme ¶
func ResolveScheme(scheme string) (types.DriverType, error)
ResolveScheme resolves a URI scheme to a driver type
Types ¶
Click to show internal directories.
Click to hide internal directories.