database

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("database", fx.Provide(newModule))

Module

Functions

This section is empty.

Types

type CommandTag

type CommandTag = pgconn.CommandTag

CommandTag

type DBTX

type DBTX interface {
	Exec(context.Context, string, ...interface{}) (CommandTag, error)
	Query(context.Context, string, ...interface{}) (Rows, error)
	QueryRow(context.Context, string, ...interface{}) Row

	Ping(context.Context) error
}

DBTX

type Params

type Params struct {
	fx.In

	Logger *zap.Logger

	Lc fx.Lifecycle

	Cfg *setup.DB
}

Params

type Result

type Result struct {
	fx.Out

	DB DBTX
}

Result

type Row

type Row = pgx.Row

Row

type Rows

type Rows = pgx.Rows

Rows

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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