sqlt

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnyTime

type AnyTime struct{}

AnyTime is a struct that matches any time type, ignoring the value

func (AnyTime) Match

func (a AnyTime) Match(v driver.Value) bool

Match satisfies sqlmock.Argument interface

type MockDB

type MockDB struct {
	*sql.DB
	sqlmock.Sqlmock
}

func NewSqlmock

func NewSqlmock() (*MockDB, error)

func (*MockDB) Gorm

func (m *MockDB) Gorm() (*MockGorm, error)

type MockGorm

type MockGorm struct {
	*MockDB
	DB *gorm.DB
}

Jump to

Keyboard shortcuts

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