sqlshim

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 10

Documentation

Overview

This file was generated by counterfeiter with command: counterfeiter -p -o /Users/pivotal/workspace/nfs-volume-release/src/code.cloudfoundry.org/goshims/sqlshim database/sql

This file was generated by counterfeiter with command: counterfeiter -p -o /Users/pivotal/workspace/nfs-volume-release/src/code.cloudfoundry.org/goshims/sqlshim database/sql

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sql

type Sql interface {
	Register(name string, d driver.Driver)
	Drivers() []string
	Open(driverName, dataSourceName string) (SqlDB, error)
}

type SqlDB

type SqlDB interface {
	Ping() error
	Close() error
	SetMaxIdleConns(n int)
	SetMaxOpenConns(n int)
	SetConnMaxLifetime(d time.Duration)
	Stats() sql.DBStats
	Prepare(query string) (*sql.Stmt, error)
	Exec(query string, args ...interface{}) (sql.Result, error)
	Query(query string, args ...interface{}) (*sql.Rows, error)
	QueryRow(query string, args ...interface{}) *sql.Row
	Begin() (*sql.Tx, error)
	Driver() driver.Driver
}

Manually generated db interface

type SqlShim

type SqlShim struct{}

func (*SqlShim) Drivers

func (sh *SqlShim) Drivers() []string

func (*SqlShim) Open

func (sh *SqlShim) Open(driverName string, dataSourceName string) (SqlDB, error)

func (*SqlShim) Register

func (sh *SqlShim) Register(name string, driver driver.Driver)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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