sql_fake

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeSql

type FakeSql struct {
	DriversStub func() []string

	OpenStub func(string, string) (sqlshim.SqlDB, error)

	RegisterStub func(string, driver.Driver)
	// contains filtered or unexported fields
}

func (*FakeSql) Drivers

func (fake *FakeSql) Drivers() []string

func (*FakeSql) DriversCallCount

func (fake *FakeSql) DriversCallCount() int

func (*FakeSql) DriversCalls

func (fake *FakeSql) DriversCalls(stub func() []string)

func (*FakeSql) DriversReturns

func (fake *FakeSql) DriversReturns(result1 []string)

func (*FakeSql) DriversReturnsOnCall

func (fake *FakeSql) DriversReturnsOnCall(i int, result1 []string)

func (*FakeSql) Invocations

func (fake *FakeSql) Invocations() map[string][][]interface{}

func (*FakeSql) Open

func (fake *FakeSql) Open(arg1 string, arg2 string) (sqlshim.SqlDB, error)

func (*FakeSql) OpenArgsForCall

func (fake *FakeSql) OpenArgsForCall(i int) (string, string)

func (*FakeSql) OpenCallCount

func (fake *FakeSql) OpenCallCount() int

func (*FakeSql) OpenCalls

func (fake *FakeSql) OpenCalls(stub func(string, string) (sqlshim.SqlDB, error))

func (*FakeSql) OpenReturns

func (fake *FakeSql) OpenReturns(result1 sqlshim.SqlDB, result2 error)

func (*FakeSql) OpenReturnsOnCall

func (fake *FakeSql) OpenReturnsOnCall(i int, result1 sqlshim.SqlDB, result2 error)

func (*FakeSql) Register

func (fake *FakeSql) Register(arg1 string, arg2 driver.Driver)

func (*FakeSql) RegisterArgsForCall

func (fake *FakeSql) RegisterArgsForCall(i int) (string, driver.Driver)

func (*FakeSql) RegisterCallCount

func (fake *FakeSql) RegisterCallCount() int

func (*FakeSql) RegisterCalls

func (fake *FakeSql) RegisterCalls(stub func(string, driver.Driver))

type FakeSqlDB

type FakeSqlDB struct {
	BeginStub func() (*sql.Tx, error)

	CloseStub func() error

	DriverStub func() driver.Driver

	ExecStub func(string, ...interface{}) (sql.Result, error)

	PingStub func() error

	PrepareStub func(string) (*sql.Stmt, error)

	QueryStub func(string, ...interface{}) (*sql.Rows, error)

	QueryRowStub func(string, ...interface{}) *sql.Row

	SetConnMaxLifetimeStub func(time.Duration)

	SetMaxIdleConnsStub func(int)

	SetMaxOpenConnsStub func(int)

	StatsStub func() sql.DBStats
	// contains filtered or unexported fields
}

func (*FakeSqlDB) Begin

func (fake *FakeSqlDB) Begin() (*sql.Tx, error)

func (*FakeSqlDB) BeginCallCount

func (fake *FakeSqlDB) BeginCallCount() int

func (*FakeSqlDB) BeginCalls

func (fake *FakeSqlDB) BeginCalls(stub func() (*sql.Tx, error))

func (*FakeSqlDB) BeginReturns

func (fake *FakeSqlDB) BeginReturns(result1 *sql.Tx, result2 error)

func (*FakeSqlDB) BeginReturnsOnCall

func (fake *FakeSqlDB) BeginReturnsOnCall(i int, result1 *sql.Tx, result2 error)

func (*FakeSqlDB) Close

func (fake *FakeSqlDB) Close() error

func (*FakeSqlDB) CloseCallCount

func (fake *FakeSqlDB) CloseCallCount() int

func (*FakeSqlDB) CloseCalls

func (fake *FakeSqlDB) CloseCalls(stub func() error)

func (*FakeSqlDB) CloseReturns

func (fake *FakeSqlDB) CloseReturns(result1 error)

func (*FakeSqlDB) CloseReturnsOnCall

func (fake *FakeSqlDB) CloseReturnsOnCall(i int, result1 error)

func (*FakeSqlDB) Driver

func (fake *FakeSqlDB) Driver() driver.Driver

func (*FakeSqlDB) DriverCallCount

func (fake *FakeSqlDB) DriverCallCount() int

func (*FakeSqlDB) DriverCalls

func (fake *FakeSqlDB) DriverCalls(stub func() driver.Driver)

func (*FakeSqlDB) DriverReturns

func (fake *FakeSqlDB) DriverReturns(result1 driver.Driver)

func (*FakeSqlDB) DriverReturnsOnCall

func (fake *FakeSqlDB) DriverReturnsOnCall(i int, result1 driver.Driver)

func (*FakeSqlDB) Exec

func (fake *FakeSqlDB) Exec(arg1 string, arg2 ...interface{}) (sql.Result, error)

func (*FakeSqlDB) ExecArgsForCall

func (fake *FakeSqlDB) ExecArgsForCall(i int) (string, []interface{})

func (*FakeSqlDB) ExecCallCount

func (fake *FakeSqlDB) ExecCallCount() int

func (*FakeSqlDB) ExecCalls

func (fake *FakeSqlDB) ExecCalls(stub func(string, ...interface{}) (sql.Result, error))

func (*FakeSqlDB) ExecReturns

func (fake *FakeSqlDB) ExecReturns(result1 sql.Result, result2 error)

func (*FakeSqlDB) ExecReturnsOnCall

func (fake *FakeSqlDB) ExecReturnsOnCall(i int, result1 sql.Result, result2 error)

func (*FakeSqlDB) Invocations

func (fake *FakeSqlDB) Invocations() map[string][][]interface{}

func (*FakeSqlDB) Ping

func (fake *FakeSqlDB) Ping() error

func (*FakeSqlDB) PingCallCount

func (fake *FakeSqlDB) PingCallCount() int

func (*FakeSqlDB) PingCalls

func (fake *FakeSqlDB) PingCalls(stub func() error)

func (*FakeSqlDB) PingReturns

func (fake *FakeSqlDB) PingReturns(result1 error)

func (*FakeSqlDB) PingReturnsOnCall

func (fake *FakeSqlDB) PingReturnsOnCall(i int, result1 error)

func (*FakeSqlDB) Prepare

func (fake *FakeSqlDB) Prepare(arg1 string) (*sql.Stmt, error)

func (*FakeSqlDB) PrepareArgsForCall

func (fake *FakeSqlDB) PrepareArgsForCall(i int) string

func (*FakeSqlDB) PrepareCallCount

func (fake *FakeSqlDB) PrepareCallCount() int

func (*FakeSqlDB) PrepareCalls

func (fake *FakeSqlDB) PrepareCalls(stub func(string) (*sql.Stmt, error))

func (*FakeSqlDB) PrepareReturns

func (fake *FakeSqlDB) PrepareReturns(result1 *sql.Stmt, result2 error)

func (*FakeSqlDB) PrepareReturnsOnCall

func (fake *FakeSqlDB) PrepareReturnsOnCall(i int, result1 *sql.Stmt, result2 error)

func (*FakeSqlDB) Query

func (fake *FakeSqlDB) Query(arg1 string, arg2 ...interface{}) (*sql.Rows, error)

func (*FakeSqlDB) QueryArgsForCall

func (fake *FakeSqlDB) QueryArgsForCall(i int) (string, []interface{})

func (*FakeSqlDB) QueryCallCount

func (fake *FakeSqlDB) QueryCallCount() int

func (*FakeSqlDB) QueryCalls

func (fake *FakeSqlDB) QueryCalls(stub func(string, ...interface{}) (*sql.Rows, error))

func (*FakeSqlDB) QueryReturns

func (fake *FakeSqlDB) QueryReturns(result1 *sql.Rows, result2 error)

func (*FakeSqlDB) QueryReturnsOnCall

func (fake *FakeSqlDB) QueryReturnsOnCall(i int, result1 *sql.Rows, result2 error)

func (*FakeSqlDB) QueryRow

func (fake *FakeSqlDB) QueryRow(arg1 string, arg2 ...interface{}) *sql.Row

func (*FakeSqlDB) QueryRowArgsForCall

func (fake *FakeSqlDB) QueryRowArgsForCall(i int) (string, []interface{})

func (*FakeSqlDB) QueryRowCallCount

func (fake *FakeSqlDB) QueryRowCallCount() int

func (*FakeSqlDB) QueryRowCalls

func (fake *FakeSqlDB) QueryRowCalls(stub func(string, ...interface{}) *sql.Row)

func (*FakeSqlDB) QueryRowReturns

func (fake *FakeSqlDB) QueryRowReturns(result1 *sql.Row)

func (*FakeSqlDB) QueryRowReturnsOnCall

func (fake *FakeSqlDB) QueryRowReturnsOnCall(i int, result1 *sql.Row)

func (*FakeSqlDB) SetConnMaxLifetime

func (fake *FakeSqlDB) SetConnMaxLifetime(arg1 time.Duration)

func (*FakeSqlDB) SetConnMaxLifetimeArgsForCall

func (fake *FakeSqlDB) SetConnMaxLifetimeArgsForCall(i int) time.Duration

func (*FakeSqlDB) SetConnMaxLifetimeCallCount

func (fake *FakeSqlDB) SetConnMaxLifetimeCallCount() int

func (*FakeSqlDB) SetConnMaxLifetimeCalls

func (fake *FakeSqlDB) SetConnMaxLifetimeCalls(stub func(time.Duration))

func (*FakeSqlDB) SetMaxIdleConns

func (fake *FakeSqlDB) SetMaxIdleConns(arg1 int)

func (*FakeSqlDB) SetMaxIdleConnsArgsForCall

func (fake *FakeSqlDB) SetMaxIdleConnsArgsForCall(i int) int

func (*FakeSqlDB) SetMaxIdleConnsCallCount

func (fake *FakeSqlDB) SetMaxIdleConnsCallCount() int

func (*FakeSqlDB) SetMaxIdleConnsCalls

func (fake *FakeSqlDB) SetMaxIdleConnsCalls(stub func(int))

func (*FakeSqlDB) SetMaxOpenConns

func (fake *FakeSqlDB) SetMaxOpenConns(arg1 int)

func (*FakeSqlDB) SetMaxOpenConnsArgsForCall

func (fake *FakeSqlDB) SetMaxOpenConnsArgsForCall(i int) int

func (*FakeSqlDB) SetMaxOpenConnsCallCount

func (fake *FakeSqlDB) SetMaxOpenConnsCallCount() int

func (*FakeSqlDB) SetMaxOpenConnsCalls

func (fake *FakeSqlDB) SetMaxOpenConnsCalls(stub func(int))

func (*FakeSqlDB) Stats

func (fake *FakeSqlDB) Stats() sql.DBStats

func (*FakeSqlDB) StatsCallCount

func (fake *FakeSqlDB) StatsCallCount() int

func (*FakeSqlDB) StatsCalls

func (fake *FakeSqlDB) StatsCalls(stub func() sql.DBStats)

func (*FakeSqlDB) StatsReturns

func (fake *FakeSqlDB) StatsReturns(result1 sql.DBStats)

func (*FakeSqlDB) StatsReturnsOnCall

func (fake *FakeSqlDB) StatsReturnsOnCall(i int, result1 sql.DBStats)

Jump to

Keyboard shortcuts

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