where

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(name ColumnName, value Value) equal

Equal constructs an equality condition for the given column name and value.

func In

func In(name ColumnName, value Value) in

In constructs an IN condition for the given column name and values.

func Like

func Like(name ColumnName, value Value) like

Like constructs a LIKE condition for the given column name and value.

Types

type ColumnName

type ColumnName = string

ColumnName represents the name of a database column.

type Condition

type Condition interface {
	Get() (string, any)
}

Condition defines an interface for query conditions, requiring a Get method that returns a query string and value.

type Value

type Value = any

Value represents a value to match in a condition; it can be any type.

Jump to

Keyboard shortcuts

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