registry

package
v4.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package registry handles driver registrations. It's in a separate package to facilitate testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Driver

func Driver(name string) driver.Driver

Driver returns the driver registered with the requested name, or nil if it has not been registered.

func Register

func Register(name string, drv driver.Driver)

Register makes a database driver available by the provided name. If Register is called twice with the same name or if driver is nil, it panics.

driver must be a driver.Driver or driver.LegacyDriver.

Types

This section is empty.

Jump to

Keyboard shortcuts

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