sqldatabase

package
v0.0.0-...-4c4206d Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: Apache-2.0 Imports: 1 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 interface {
	Exec(query string, args ...interface{}) (sql.Result, error)
}

type MockDB

type MockDB struct {
	// contains filtered or unexported fields
}

func (*MockDB) Exec

func (m *MockDB) Exec(query string, _ ...interface{}) (sql.Result, error)

func (*MockDB) LastSql

func (m *MockDB) LastSql() string

type MockResult

type MockResult struct {
	// contains filtered or unexported fields
}

func (*MockResult) LastInsertId

func (m *MockResult) LastInsertId() (int64, error)

func (*MockResult) RowsAffected

func (m *MockResult) RowsAffected() (int64, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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