clauses

package
v0.0.0-...-bf8f870 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteClause

type DeleteClause interface {
	Where(condition interface{}) DeleteClause
	WhereOr(condition interface{}) DeleteClause
	WhereNot(condition interface{}) DeleteClause
	Limit(number int) DeleteClause
	GetSQLQuery() string
	Exec() (sql.Result, error)
}

type InsertClause

type InsertClause interface {
	SetData(data interface{}) InsertClause
	GetSQLQuery() string
	Exec() (sql.Result, error)
}

type SelectClause

type SelectClause interface {
	Limit(number int) SelectClause
	OrderBy(orderBy []string) SelectClause
	Where(condition interface{}) SelectClause
	WhereNot(condition interface{}) SelectClause
	WhereOr(condition interface{}) SelectClause
	GetSQLQuery() string
	All(target interface{}) error
	First(target interface{}) error
	Last(target interface{}) error
}

type UpdateClause

type UpdateClause interface {
	SetData(data interface{}) UpdateClause
	Where(condition interface{}) UpdateClause
	WhereOr(condition interface{}) UpdateClause
	WhereNot(condition interface{}) UpdateClause
	GetSQLQuery() string
	Exec() (sql.Result, error)
	OrderBy(orderBy []string) UpdateClause
	Limit(number int) UpdateClause
}

Jump to

Keyboard shortcuts

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