sqlpgutils

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package sqlpgutils provides database utility functions and helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WhereBuilder

type WhereBuilder struct {
	// contains filtered or unexported fields
}

WhereBuilder helps construct complex WHERE clauses by chaining AND conditions.

func NewWhereBuilder

func NewWhereBuilder() *WhereBuilder

NewWhereBuilder creates a new empty WHERE clause builder.

func (*WhereBuilder) And

func (w *WhereBuilder) And(expr postgres.BoolExpression)

And adds a boolean expression to the WHERE clause using AND logic.

func (*WhereBuilder) Expression

func (w *WhereBuilder) Expression() postgres.BoolExpression

Expression returns the final constructed boolean expression.

Jump to

Keyboard shortcuts

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