database

package
v0.0.0-...-20a5a9c Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT 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 {
	Close() error

	Saver
	Getter
	Selector
	Updater
	Deleter
}

type Deleter

type Deleter interface {
	Delete(ctx context.Context, query string, args ...any) error
	DeleteNamed(ctx context.Context, query string, arg any) error
}

type Getter

type Getter interface {
	Get(ctx context.Context, dest any, query string, args ...any) error
	GetNamed(ctx context.Context, dest any, query string, arg any) error
	GetPrepared(ctx context.Context, dest any, query string, args ...any) error
}

type Saver

type Saver interface {
	Save(ctx context.Context, dest any, query string, arg any) error
}

type Selector

type Selector interface {
	Select(ctx context.Context, dest any, query string, args ...any) error
	SelectPrepared(ctx context.Context, dest any, query string, args ...any) error
}

type Updater

type Updater interface {
	Update(ctx context.Context, query string, args ...any) error
	UpdateNamed(ctx context.Context, query string, arg any) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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