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