internal

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetColumnValues added in v0.3.1

func GetColumnValues[T any](mapping Mapping, filter []string, objs ...T) ([]string, [][]any, error)

Get the values for non generated columns

Types

type Mapping added in v0.3.1

type Mapping struct {
	All          []string
	PKs          []string
	NonPKs       []string
	Generated    []string
	NonGenerated []string

	CreatedAtCol int
	UpdatedAtCol int
	DeletedAtCol int
}

func GetMappings added in v0.3.1

func GetMappings(typ reflect.Type) Mapping

func (Mapping) Columns added in v0.3.1

func (c Mapping) Columns(table ...string) orm.Columns

Jump to

Keyboard shortcuts

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