flare

package
v0.0.0-...-75b530a Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustClose

func MustClose(c io.Closer)

func RegisterDriver

func RegisterDriver(driver Driver, scheme string)

Types

type Database

type Database struct {
	URL *url.URL
}

func New

func New(url *url.URL) *Database

func (*Database) Create

func (db *Database) Create() error

func (*Database) Driver

func (db *Database) Driver() (Driver, error)

func (*Database) Drop

func (db *Database) Drop() error

type Driver

type Driver interface {
	Open() (*sql.DB, error)
	Create() error
	Drop() error
}

Jump to

Keyboard shortcuts

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