orm

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// JoinType constants.
	JoinDefault = orm.JoinDefault
	JoinInner   = orm.JoinInner
	JoinLeft    = orm.JoinLeft
	JoinRight   = orm.JoinRight
	JoinFull    = orm.JoinFull
	JoinCross   = orm.JoinCross

	// FuzzyKind constants.
	FuzzyStarts   = orm.FuzzyStarts
	FuzzyEnds     = orm.FuzzyEnds
	FuzzyContains = orm.FuzzyContains

	// NullsMode constants.
	NullsDefault = orm.NullsDefault
	NullsRespect = orm.NullsRespect
	NullsIgnore  = orm.NullsIgnore

	// FromDirection constants.
	FromDefault = orm.FromDefault
	FromFirst   = orm.FromFirst
	FromLast    = orm.FromLast

	// FrameType constants.
	FrameDefault = orm.FrameDefault
	FrameRows    = orm.FrameRows
	FrameRange   = orm.FrameRange
	FrameGroups  = orm.FrameGroups

	// FrameBoundKind constants.
	FrameBoundNone               = orm.FrameBoundNone
	FrameBoundUnboundedPreceding = orm.FrameBoundUnboundedPreceding
	FrameBoundUnboundedFollowing = orm.FrameBoundUnboundedFollowing
	FrameBoundCurrentRow         = orm.FrameBoundCurrentRow
	FrameBoundPreceding          = orm.FrameBoundPreceding
	FrameBoundFollowing          = orm.FrameBoundFollowing

	// StatisticalMode constants.
	StatisticalDefault    = orm.StatisticalDefault
	StatisticalPopulation = orm.StatisticalPopulation
	StatisticalSample     = orm.StatisticalSample

	// ConflictAction constants.
	ConflictDoNothing = orm.ConflictDoNothing
	ConflictDoUpdate  = orm.ConflictDoUpdate

	// DateTimeUnit constants.
	UnitYear   = orm.UnitYear
	UnitMonth  = orm.UnitMonth
	UnitDay    = orm.UnitDay
	UnitHour   = orm.UnitHour
	UnitMinute = orm.UnitMinute
	UnitSecond = orm.UnitSecond
)

Variables

View Source
var ApplySort = orm.ApplySort

Functions

This section is empty.

Types

type AfterDeleteHook

type AfterDeleteHook interface {
	bun.AfterDeleteHook
	AfterDelete(ctx context.Context, query *BunDeleteQuery) error
}

type AfterInsertHook

type AfterInsertHook interface {
	bun.AfterInsertHook
	AfterInsert(ctx context.Context, query *BunInsertQuery) error
}

type AfterScanRowHook

type AfterScanRowHook = bun.AfterScanRowHook

type AfterSelectHook

type AfterSelectHook interface {
	bun.AfterSelectHook
	AfterSelect(ctx context.Context, query *BunSelectQuery) error
}

type AfterUpdateHook

type AfterUpdateHook interface {
	bun.AfterUpdateHook
	AfterUpdate(ctx context.Context, query *BunUpdateQuery) error
}

type Applier

type Applier[T any] = orm.Applier[T]

type ApplyFunc

type ApplyFunc[T any] = orm.ApplyFunc[T]

type ArrayAggBuilder

type ArrayAggBuilder = orm.ArrayAggBuilder

type AvgBuilder

type AvgBuilder = orm.AvgBuilder

type BaseModel

type BaseModel = bun.BaseModel

type BeforeDeleteHook

type BeforeDeleteHook interface {
	bun.BeforeDeleteHook
	BeforeDelete(ctx context.Context, query *BunDeleteQuery) error
}

type BeforeInsertHook

type BeforeInsertHook interface {
	bun.BeforeInsertHook
	BeforeInsert(ctx context.Context, query *BunInsertQuery) error
}

type BeforeScanRowHook

type BeforeScanRowHook = bun.BeforeScanRowHook

type BeforeSelectHook

type BeforeSelectHook interface {
	bun.BeforeSelectHook
	BeforeSelect(ctx context.Context, query *BunSelectQuery) error
}

type BeforeUpdateHook

type BeforeUpdateHook interface {
	bun.BeforeUpdateHook
	BeforeUpdate(ctx context.Context, query *BunUpdateQuery) error
}

type BitAndBuilder

type BitAndBuilder = orm.BitAndBuilder

type BitOrBuilder

type BitOrBuilder = orm.BitOrBuilder

type BoolAndBuilder

type BoolAndBuilder = orm.BoolAndBuilder

type BoolOrBuilder

type BoolOrBuilder = orm.BoolOrBuilder

type BunDeleteQuery

type BunDeleteQuery = bun.DeleteQuery

type BunInsertQuery

type BunInsertQuery = bun.InsertQuery

type BunSelectQuery

type BunSelectQuery = bun.SelectQuery

type BunUpdateQuery

type BunUpdateQuery = bun.UpdateQuery

type CaseBuilder

type CaseBuilder = orm.CaseBuilder

type CaseWhenBuilder

type CaseWhenBuilder = orm.CaseWhenBuilder

type ColumnInfo

type ColumnInfo = orm.ColumnInfo

type ConditionBuilder

type ConditionBuilder = orm.ConditionBuilder

type ConflictAction added in v0.14.0

type ConflictAction = orm.ConflictAction

type ConflictBuilder

type ConflictBuilder = orm.ConflictBuilder

type ConflictUpdateBuilder

type ConflictUpdateBuilder = orm.ConflictUpdateBuilder

type CountBuilder

type CountBuilder = orm.CountBuilder

type CumeDistBuilder

type CumeDistBuilder = orm.CumeDistBuilder

type DateTimeUnit added in v0.14.0

type DateTimeUnit = orm.DateTimeUnit

type Db

type Db = orm.Db

type DeleteQuery

type DeleteQuery = orm.DeleteQuery

type DenseRankBuilder

type DenseRankBuilder = orm.DenseRankBuilder

type Dialect

type Dialect = schema.Dialect

type ExprBuilder

type ExprBuilder = orm.ExprBuilder

type Field

type Field = schema.Field

type FirstValueBuilder

type FirstValueBuilder = orm.FirstValueBuilder

type FrameBoundKind added in v0.14.0

type FrameBoundKind = orm.FrameBoundKind

type FrameType added in v0.14.0

type FrameType = orm.FrameType

type FromDirection added in v0.14.0

type FromDirection = orm.FromDirection

type FuzzyKind added in v0.14.0

type FuzzyKind = orm.FuzzyKind

type InsertQuery

type InsertQuery = orm.InsertQuery

type JoinType

type JoinType = orm.JoinType

type JsonArrayAggBuilder added in v0.15.0

type JsonArrayAggBuilder = orm.JsonArrayAggBuilder

type JsonObjectAggBuilder added in v0.15.0

type JsonObjectAggBuilder = orm.JsonObjectAggBuilder

type LagBuilder

type LagBuilder = orm.LagBuilder

type LastValueBuilder

type LastValueBuilder = orm.LastValueBuilder

type LeadBuilder

type LeadBuilder = orm.LeadBuilder

type MaxBuilder

type MaxBuilder = orm.MaxBuilder

type MergeInsertBuilder

type MergeInsertBuilder = orm.MergeInsertBuilder

type MergeQuery

type MergeQuery = orm.MergeQuery

type MergeUpdateBuilder

type MergeUpdateBuilder = orm.MergeUpdateBuilder

type MergeWhenBuilder

type MergeWhenBuilder = orm.MergeWhenBuilder

type MinBuilder

type MinBuilder = orm.MinBuilder

type Model

type Model = orm.Model

type NTileBuilder added in v0.14.0

type NTileBuilder = orm.NTileBuilder

type NthValueBuilder

type NthValueBuilder = orm.NthValueBuilder

type NullsMode added in v0.14.0

type NullsMode = orm.NullsMode

type OrderBuilder

type OrderBuilder = orm.OrderBuilder

type PercentRankBuilder

type PercentRankBuilder = orm.PercentRankBuilder

type PkField added in v0.6.0

type PkField = orm.PkField

type QueryBuilder

type QueryBuilder = orm.QueryBuilder

type RankBuilder

type RankBuilder = orm.RankBuilder

type RawQuery

type RawQuery = orm.RawQuery

type Relation

type Relation = schema.Relation

type RelationSpec

type RelationSpec = orm.RelationSpec

type RowNumberBuilder

type RowNumberBuilder = orm.RowNumberBuilder

type SelectQuery

type SelectQuery = orm.SelectQuery

type StatisticalMode added in v0.14.0

type StatisticalMode = orm.StatisticalMode

type StdDevBuilder

type StdDevBuilder = orm.StdDevBuilder

type StringAggBuilder

type StringAggBuilder = orm.StringAggBuilder

type SumBuilder

type SumBuilder = orm.SumBuilder

type Table

type Table = schema.Table

type UpdateQuery

type UpdateQuery = orm.UpdateQuery

type VarianceBuilder

type VarianceBuilder = orm.VarianceBuilder

type WindowArrayAggBuilder

type WindowArrayAggBuilder = orm.WindowArrayAggBuilder

type WindowAvgBuilder

type WindowAvgBuilder = orm.WindowAvgBuilder

type WindowBitAndBuilder

type WindowBitAndBuilder = orm.WindowBitAndBuilder

type WindowBitOrBuilder

type WindowBitOrBuilder = orm.WindowBitOrBuilder

type WindowBoolAndBuilder

type WindowBoolAndBuilder = orm.WindowBoolAndBuilder

type WindowBoolOrBuilder

type WindowBoolOrBuilder = orm.WindowBoolOrBuilder

type WindowCountBuilder

type WindowCountBuilder = orm.WindowCountBuilder

type WindowJsonArrayAggBuilder added in v0.15.0

type WindowJsonArrayAggBuilder = orm.WindowJsonArrayAggBuilder

type WindowJsonObjectAggBuilder added in v0.15.0

type WindowJsonObjectAggBuilder = orm.WindowJsonObjectAggBuilder

type WindowMaxBuilder

type WindowMaxBuilder = orm.WindowMaxBuilder

type WindowMinBuilder

type WindowMinBuilder = orm.WindowMinBuilder

type WindowStdDevBuilder

type WindowStdDevBuilder = orm.WindowStdDevBuilder

type WindowStringAggBuilder

type WindowStringAggBuilder = orm.WindowStringAggBuilder

type WindowSumBuilder

type WindowSumBuilder = orm.WindowSumBuilder

type WindowVarianceBuilder

type WindowVarianceBuilder = orm.WindowVarianceBuilder

Jump to

Keyboard shortcuts

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