registry

package
Version: v3.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 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, driver 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.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto