query

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryBuilder

type QueryBuilder interface {
	// WithFields selects the specified fields
	WithFields(...string)
	// Where allows adding conditions to filter data
	Where(string, interface{})
	// Fields returns the selected fields
	Fields() []string
	// Filters returns all conditions to filter data
	Filters() map[string]interface{}
}

QueryBuilder allows to create queries dynamically/programmatically

func NewQueryBuilder added in v1.28.0

func NewQueryBuilder() QueryBuilder

NewQueryBuilder creates a new instance of QueryBuilder

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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