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

sql

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	*sql.DB
}

DB is a simple wrapper of sql.DB.

func Open

func Open(driver, connectURL string, logger Logger) (*DB, error)

Open opens a database specified by its database driver name and a driver-specific connect url.

type Logger added in v0.1.0

type Logger interface {
	Info(...interface{})
}

Logger defines the logger needed by the sql package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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