config

package
v0.0.12-beta.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OptionVersion                  = "version"
	OptionTrace, EnvKeyTrace       = "trace", "ARCGEN_TRACE"
	OptionDebug, EnvKeyDebug       = "debug", "ARCGEN_DEBUG"
	OptionDialect, EnvKeyDialect   = "dialect", "ARCGEN_DIALECT"
	OptionLanguage, EnvKeyLanguage = "lang", "ARCGEN_LANGUAGE"

	//
	// Golang
	//
	OptionGoColumnTag, EnvKeyGoColumnTag                                   = "go-column-tag", "ARCGEN_GO_COLUMN_TAG"
	OptionGoMethodNameTable, EnvKeyGoMethodNameTable                       = "go-method-name-table", "ARCGEN_GO_METHOD_NAME_TABLE"
	OptionGoMethodNameColumns, EnvKeyGoMethodNameColumns                   = "go-method-name-columns", "ARCGEN_GO_METHOD_NAME_COLUMNS"
	OptionGoMethodPrefixColumn, EnvKeyGoMethodPrefixColumn                 = "go-method-prefix-column", "ARCGEN_GO_METHOD_PREFIX_COLUMN"
	OptionGoPKTag, EnvKeyGoPKTag                                           = "go-pk-tag", "ARCGEN_GO_PK_TAG"
	OptionGoSliceTypeSuffix, EnvKeyGoSliceTypeSuffix                       = "go-slice-type-suffix", "ARCGEN_GO_SLICE_TYPE_SUFFIX"
	OptionGoORMOutputPath, EnvKeyGoORMOutputPath                           = "go-orm-output-path", "ARCGEN_GO_ORM_OUTPUT_PATH"
	OptionGoORMPackageName, EnvKeyGoORMPackageName                         = "go-orm-package-name", "ARCGEN_GO_ORM_PACKAGE_NAME"
	OptionGoORMStructPackageImportPath, EnvKeyGoORMStructPackageImportPath = "go-orm-struct-package-import-path", "ARCGEN_GO_ORM_STRUCT_PACKAGE_IMPORT_PATH"
	OptionGoORMTypeName, EnvKeyGoORMTypeName                               = "go-orm-type-name", "ARCGEN_GO_ORM_TYPE_NAME"
	OptionGoORMStructName, EnvKeyGoORMStructName                           = "go-orm-struct-name", "ARCGEN_GO_ORM_STRUCT_NAME"
	OptionGoHasManyTag, EnvKeyGoHasManyTag                                 = "go-has-many-tag", "ARCGEN_GO_HAS_MANY_TAG"
	OptionGoHasOneTag, EnvKeyGoHasOneTag                                   = "go-has-one-tag", "ARCGEN_GO_HAS_ONE_TAG"
)

Variables

This section is empty.

Functions

func Debug

func Debug() bool

func Dialect

func Dialect() string

func GenerateGoORMPackage

func GenerateGoORMPackage() bool

func GoColumnTag added in v0.0.10

func GoColumnTag() string

func GoHasManyTag

func GoHasManyTag() string

func GoHasOneTag

func GoHasOneTag() string

func GoMethodNameColumns

func GoMethodNameColumns() string

func GoMethodNameTable

func GoMethodNameTable() string

func GoMethodPrefixColumn

func GoMethodPrefixColumn() string

func GoORMOutputPath

func GoORMOutputPath() string

func GoORMPackageName

func GoORMPackageName() string

func GoORMStructName

func GoORMStructName() string

func GoORMStructPackageImportPath

func GoORMStructPackageImportPath() string

func GoORMTypeName

func GoORMTypeName() string

func GoPKTag

func GoPKTag() string

func GoSliceTypeSuffix

func GoSliceTypeSuffix() string

func Language

func Language() string

func Load

func Load(ctx context.Context) (rollback func(), remainingArgs []string, err error)

func MustLoad

func MustLoad(ctx context.Context) (rollback func(), remainingArgs []string)

func Trace

func Trace() bool

func Version

func Version() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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