sqlt

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Execer

type Execer interface {
	ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error)
}

Execer は database/sql の ExecContext メソッドをラップするインターフェイスです.

type NullExecer

type NullExecer struct{}

func (NullExecer) ExecContext

func (e NullExecer) ExecContext(_ context.Context, query string, args ...any) (sql.Result, error)

type Preparer

type Preparer interface {
	PrepareContext(ctx context.Context, query string) (*sql.Stmt, error)
}

Preparer は database/sql の PrepareContext メソッドをラップするインターフェイスです.

type QueryRower

type QueryRower interface {
	QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row
}

QueryRower は database/sql の QueryRowContext メソッドをラップするインターフェイスです.

type Queryer

type Queryer interface {
	QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error)
}

Queryer は database/sql の QueryContext メソッドをラップするインターフェイスです.

type RowsScanner

type RowsScanner interface {
	Scan(dest ...any) error
}

RowsScanner は database/sql の Scan メソッドをラップするインターフェイスです.

type TestExeced

type TestExeced struct {
	Query string
	Args  []any
}

type TestExecer

type TestExecer struct {
	Execed []TestExeced
}

func (*TestExecer) ExecContext

func (e *TestExecer) ExecContext(_ context.Context, query string, args ...any) (sql.Result, error)

Jump to

Keyboard shortcuts

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