dbutil

package
v0.19.4 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure added in v0.12.5

func Configure(db *sql.DB, mon *monkit.Scope)

Configure Sets Connection Boundaries and adds db_stats monitoring to monkit

func SplitConnstr

func SplitConnstr(s string) (string, string, error)

SplitConnstr returns the driver and DSN portions of a URL

Types

type NullTime added in v0.18.0

type NullTime struct {
	time.Time
	Valid bool
}

NullTime time helps convert nil to time.Time

func (*NullTime) Scan added in v0.18.0

func (nt *NullTime) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullTime) Value added in v0.18.0

func (nt NullTime) Value() (driver.Value, error)

Value implements the driver Valuer interface.

Directories

Path Synopsis
Package dbschema package implements querying and comparing schemas for testing.
Package dbschema package implements querying and comparing schemas for testing.
Package pgutil contains utilities for postgres
Package pgutil contains utilities for postgres

Jump to

Keyboard shortcuts

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