test

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithSqlxMock

func WithSqlxMock(proc func(ctx context.Context, db *sqlx.DB, mock sqlmock.Sqlmock)) error

Types

type TestSchema

type TestSchema struct {
	ID        int       `db:"id" torm:"autoIncrement"`
	Foo       int       `db:"foo"`
	Bar       int       `json:"bar"`
	CreatedAt time.Time `db:"created_at" torm:"autoCreateTime"`
	UpdatedAt time.Time `db:"updated_at" torm:"autoUpdateTime"`
}

func (TestSchema) TableName

func (s TestSchema) TableName() string

Jump to

Keyboard shortcuts

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