query

package
v0.0.0-...-28009d5 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package query assists in building SQL queries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Update

type Update struct {
	Updates, Conditions string
	Params              []interface{}
	// contains filtered or unexported fields
}

func NewUpdate

func NewUpdate() *Update

func (*Update) Append

func (u *Update) Append(v interface{})

func (*Update) Set

func (u *Update) Set(v, property string) *Update

func (*Update) SetBoolPtr

func (u *Update) SetBoolPtr(v *bool, property string) *Update

func (*Update) SetBytes

func (u *Update) SetBytes(v []byte, property string) *Update

func (*Update) SetIntPtr

func (u *Update) SetIntPtr(v *int, property string) *Update

func (*Update) SetNullBool

func (u *Update) SetNullBool(v *sql.NullBool, property string) *Update

func (*Update) SetNullString

func (u *Update) SetNullString(v *sql.NullString, property string) *Update

func (*Update) SetStringPtr

func (u *Update) SetStringPtr(v *string, property string) *Update

func (*Update) Where

func (u *Update) Where(condition string, params ...interface{}) *Update

Jump to

Keyboard shortcuts

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