domain

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Field

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

func HasField

func HasField(object Object, fieldName string) bool

func RelationColumnName added in v0.1.8

func RelationColumnName(object Object) string

func RelationTableName added in v0.1.7

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

func RelativeDomainPath added in v0.1.1

func RelativeDomainPath(object Object) string

func SetField

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

func SnakeDomainName added in v0.1.1

func SnakeDomainName(object Object) string

func TableName added in v0.1.1

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