modelscoped

package
v0.0.0-...-35291d1 Latest Latest
Warning

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

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

Documentation

Overview

+gengo:runtimedoc=false

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllColumns

func AllColumns[Model internal.Model](columns ...Column[Model]) iter.Seq[Column[Model]]

Types

type Column

type Column[Model internal.Model] interface {
	ModelNewer[Model]
	sqlbuilder.Column
	ComputedBy(frag sqlfrag.Fragment) Column[Model]
}

func CastColumn

func CastColumn[Model internal.Model](col sqlbuilder.Column) Column[Model]

type ColumnSeq

type ColumnSeq[Model internal.Model] interface {
	sqlbuilder.ColumnSeq

	MCols() iter.Seq[Column[Model]]
}

type Key

type Key[Model internal.Model] interface {
	ModelNewer[Model]

	sqlbuilder.Key

	ColumnSeq[Model]
}

func CastKey

func CastKey[Model internal.Model](k sqlbuilder.Key) Key[Model]

type KeySeq

type KeySeq[Model internal.Model] interface {
	MKeys() iter.Seq[Key[Model]]
}

type M

type M[Model internal.Model] struct{}

func (M[Model]) Model

func (M[Model]) Model() *Model

type ModelNewer

type ModelNewer[Model internal.Model] internal.ModelNewer[Model]

type Order

type Order[Model internal.Model] interface {
	sqlbuilder.Order
}

func AscOrder

func AscOrder[Model internal.Model](col Column[Model]) Order[Model]

func DescOrder

func DescOrder[Model internal.Model](col Column[Model]) Order[Model]

type Table

type Table[Model internal.Model] interface {
	sqlbuilder.Table

	ModelNewer[Model]

	MK(key string) Key[Model]

	ColumnSeq[Model]

	KeySeq[Model]
}

func CastTable

func CastTable[Model internal.Model](t sqlbuilder.Table) Table[Model]

func FromModel

func FromModel[Model internal.Model]() Table[Model]

type TypedColumn

type TypedColumn[Model internal.Model, T any] interface {
	ModelNewer[Model]
	sqlbuilder.TypedColumn[T]

	ComputedBy(frag sqlfrag.Fragment) Column[Model]
	TypedComputedBy(frag sqlfrag.Fragment) TypedColumn[Model, T]
}

func CastTypedColumn

func CastTypedColumn[Model internal.Model, T any](col sqlbuilder.Column) TypedColumn[Model, T]

func TypedCol

func TypedCol[Model internal.Model, T any](name string, opts ...sqlbuilder.ColOptionFunc) TypedColumn[Model, T]

Jump to

Keyboard shortcuts

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