Help us shape the future of Go! Take the 2026 Go Developer Survey

registry

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllURIParsers

func GetAllURIParsers() map[string]types.URIParser

GetAllURIParsers returns all registered URI parsers

func GetCapabilities

func GetCapabilities(driverType types.DriverType) (types.DriverCapabilities, error)

GetCapabilities retrieves registered driver capabilities

func GetURIParser

func GetURIParser(dbType string) (types.URIParser, error)

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

func RegisterURIParser(dbType string, parser types.URIParser)

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

type DriverFactory

type DriverFactory func(uri string) (types.Database, error)

DriverFactory is a function that creates a new database instance

func Get

func Get(dbType string) (DriverFactory, error)

Get retrieves a registered driver factory

Jump to

Keyboard shortcuts

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