sql

package
Version: 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: 0

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

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

Logger defines the logger needed by the sql package.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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