domain

package
v0.10.8 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckField added in v0.5.1

func CheckField(result check.Result, domainCNName string, fieldName string) error

func CheckFields added in v0.5.1

func CheckFields(result check.Result, domainCNName string, fieldNames []string) error

func ColumnName added in v0.5.1

func ColumnName(fieldName string) string

func Field

func Field[T any](object Object, fieldName string) (T, error)

func HasField

func HasField(object Object, fieldName string) bool

func RelationColumnName

func RelationColumnName(object Object) string

func RelationTableName

func RelationTableName(schema string, left Object, right Object) string

func RelativeDomainPath

func RelativeDomainPath(object Object) string

func SetField

func SetField[T any](object Object, fieldName string, value T) error

func SnakeDomainName

func SnakeDomainName(object Object) string

func TableName

func TableName(schema string, object Object) string

func ToConcrete

func ToConcrete[T Object](object Object) (T, error)

Types

type Object

type Object interface {
	DBSchema() string
	DomainCNName() string
	DomainCamelName() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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