Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type DatabaseMigrator
- func (fake *DatabaseMigrator) Invocations() map[string][][]interface{}
- func (fake *DatabaseMigrator) Migrate() (int, error)
- func (fake *DatabaseMigrator) MigrateCallCount() int
- func (fake *DatabaseMigrator) MigrateReturns(result1 int, result2 error)
- func (fake *DatabaseMigrator) MigrateReturnsOnCall(i int, result1 int, result2 error)
- type Db
- func (fake *Db) DriverName() string
- func (fake *Db) DriverNameCallCount() int
- func (fake *Db) DriverNameReturns(result1 string)
- func (fake *Db) DriverNameReturnsOnCall(i int, result1 string)
- func (fake *Db) Exec(query string, args ...interface{}) (sql.Result, error)
- func (fake *Db) ExecArgsForCall(i int) (string, []interface{})
- func (fake *Db) ExecCallCount() int
- func (fake *Db) ExecReturns(result1 sql.Result, result2 error)
- func (fake *Db) ExecReturnsOnCall(i int, result1 sql.Result, result2 error)
- func (fake *Db) Invocations() map[string][][]interface{}
- func (fake *Db) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (fake *Db) QueryArgsForCall(i int) (string, []interface{})
- func (fake *Db) QueryCallCount() int
- func (fake *Db) QueryReturns(result1 *sql.Rows, result2 error)
- func (fake *Db) QueryReturnsOnCall(i int, result1 *sql.Rows, result2 error)
- func (fake *Db) QueryRow(query string, args ...interface{}) *sql.Row
- func (fake *Db) QueryRowArgsForCall(i int) (string, []interface{})
- func (fake *Db) QueryRowCallCount() int
- func (fake *Db) QueryRowReturns(result1 *sql.Row)
- func (fake *Db) QueryRowReturnsOnCall(i int, result1 *sql.Row)
- func (fake *Db) RawConnection() *sqlx.DB
- func (fake *Db) RawConnectionCallCount() int
- func (fake *Db) RawConnectionReturns(result1 *sqlx.DB)
- func (fake *Db) RawConnectionReturnsOnCall(i int, result1 *sqlx.DB)
- func (fake *Db) Rebind(query string) string
- func (fake *Db) RebindArgsForCall(i int) string
- func (fake *Db) RebindCallCount() int
- func (fake *Db) RebindReturns(result1 string)
- func (fake *Db) RebindReturnsOnCall(i int, result1 string)
- type MigrateAdapter
- func (fake *MigrateAdapter) Exec(db database.Db, dialect string, m migrate.MigrationSource, ...) (int, error)
- func (fake *MigrateAdapter) ExecArgsForCall(i int) (database.Db, string, migrate.MigrationSource, migrate.MigrationDirection)
- func (fake *MigrateAdapter) ExecCallCount() int
- func (fake *MigrateAdapter) ExecReturns(result1 int, result2 error)
- func (fake *MigrateAdapter) ExecReturnsOnCall(i int, result1 int, result2 error)
- func (fake *MigrateAdapter) Invocations() map[string][][]interface{}
- type SqlResult
- func (fake *SqlResult) Invocations() map[string][][]interface{}
- func (fake *SqlResult) LastInsertId() (int64, error)
- func (fake *SqlResult) LastInsertIdCallCount() int
- func (fake *SqlResult) LastInsertIdReturns(result1 int64, result2 error)
- func (fake *SqlResult) LastInsertIdReturnsOnCall(i int, result1 int64, result2 error)
- func (fake *SqlResult) RowsAffected() (int64, error)
- func (fake *SqlResult) RowsAffectedCallCount() int
- func (fake *SqlResult) RowsAffectedReturns(result1 int64, result2 error)
- func (fake *SqlResult) RowsAffectedReturnsOnCall(i int, result1 int64, result2 error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseMigrator ¶
type DatabaseMigrator struct { MigrateStub func() (int, error) // contains filtered or unexported fields }
func (*DatabaseMigrator) Invocations ¶
func (fake *DatabaseMigrator) Invocations() map[string][][]interface{}
func (*DatabaseMigrator) Migrate ¶
func (fake *DatabaseMigrator) Migrate() (int, error)
func (*DatabaseMigrator) MigrateCallCount ¶
func (fake *DatabaseMigrator) MigrateCallCount() int
func (*DatabaseMigrator) MigrateReturns ¶
func (fake *DatabaseMigrator) MigrateReturns(result1 int, result2 error)
func (*DatabaseMigrator) MigrateReturnsOnCall ¶
func (fake *DatabaseMigrator) MigrateReturnsOnCall(i int, result1 int, result2 error)
type Db ¶
type Db struct { ExecStub func(query string, args ...interface{}) (sql.Result, error) RebindStub func(query string) string QueryStub func(query string, args ...interface{}) (*sql.Rows, error) QueryRowStub func(query string, args ...interface{}) *sql.Row DriverNameStub func() string RawConnectionStub func() *sqlx.DB // contains filtered or unexported fields }
func (*Db) DriverName ¶
func (*Db) DriverNameCallCount ¶
func (*Db) DriverNameReturns ¶
func (*Db) DriverNameReturnsOnCall ¶
func (*Db) ExecArgsForCall ¶
func (*Db) ExecCallCount ¶
func (*Db) ExecReturnsOnCall ¶
func (*Db) Invocations ¶
func (*Db) QueryArgsForCall ¶
func (*Db) QueryCallCount ¶
func (*Db) QueryReturnsOnCall ¶
func (*Db) QueryRowArgsForCall ¶
func (*Db) QueryRowCallCount ¶
func (*Db) QueryRowReturns ¶
func (*Db) RawConnection ¶
func (*Db) RawConnectionCallCount ¶
func (*Db) RawConnectionReturns ¶
func (*Db) RawConnectionReturnsOnCall ¶
func (*Db) RebindArgsForCall ¶
func (*Db) RebindCallCount ¶
func (*Db) RebindReturns ¶
func (*Db) RebindReturnsOnCall ¶
type MigrateAdapter ¶
type MigrateAdapter struct { ExecStub func(db database.Db, dialect string, m migrate.MigrationSource, dir migrate.MigrationDirection) (int, error) // contains filtered or unexported fields }
func (*MigrateAdapter) ExecArgsForCall ¶
func (fake *MigrateAdapter) ExecArgsForCall(i int) (database.Db, string, migrate.MigrationSource, migrate.MigrationDirection)
func (*MigrateAdapter) ExecCallCount ¶
func (fake *MigrateAdapter) ExecCallCount() int
func (*MigrateAdapter) ExecReturns ¶
func (fake *MigrateAdapter) ExecReturns(result1 int, result2 error)
func (*MigrateAdapter) ExecReturnsOnCall ¶
func (fake *MigrateAdapter) ExecReturnsOnCall(i int, result1 int, result2 error)
func (*MigrateAdapter) Invocations ¶
func (fake *MigrateAdapter) Invocations() map[string][][]interface{}
type SqlResult ¶
type SqlResult struct { LastInsertIdStub func() (int64, error) RowsAffectedStub func() (int64, error) // contains filtered or unexported fields }
func (*SqlResult) Invocations ¶
func (*SqlResult) LastInsertId ¶
func (*SqlResult) LastInsertIdCallCount ¶
func (*SqlResult) LastInsertIdReturns ¶
func (*SqlResult) LastInsertIdReturnsOnCall ¶
func (*SqlResult) RowsAffected ¶
func (*SqlResult) RowsAffectedCallCount ¶
func (*SqlResult) RowsAffectedReturns ¶
Click to show internal directories.
Click to hide internal directories.