database

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

this package provide the interface to interact with the database

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queryer

type Queryer interface {
	Query(ctx context.Context, sql string, args ...any) (pgx.Rows, error)
	QueryRow(ctx context.Context, sql string, args ...any) pgx.Row
}

Queryer is an interface that defines methods for querying a database. It includes methods for executing queries that return multiple rows, single rows, and closing the connection. test with pgx.Conn and pgxpool.Pool. suitable pgx ecosystem

Jump to

Keyboard shortcuts

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