model

package
v0.0.0-...-179ea12 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Function

type Function struct {
	Name         string
	Language     string
	ReturnType   string
	ReturnsSet   bool
	ArgNames     []string
	ArgTypes     []string
	FunctionBody string
}

Function describes the properties of a database function.

func (Function) Args

func (f Function) Args(lang string) string

Args returns something that can be used in code.

func (Function) DefaultReturnValue

func (f Function) DefaultReturnValue(lang string) string

func (Function) HasArgs

func (f Function) HasArgs() bool

HasArgs returns true if this function accepts arguments.

func (Function) LanguageReturnType

func (f Function) LanguageReturnType(lang string) string

func (Function) QueryArgs

func (f Function) QueryArgs(lang string) string

func (Function) ReturnsRecord

func (f Function) ReturnsRecord() bool

ReturnsRecord returns true if this function returns one or move records.

func (Function) ReturnsValue

func (f Function) ReturnsValue() bool

ReturnsValue returns true if this function returns an argument.

func (Function) SafeFunctionBody

func (f Function) SafeFunctionBody() string

func (Function) ToCamelCase

func (f Function) ToCamelCase() string

func (Function) ToPascalCase

func (f Function) ToPascalCase() string

ToPascalCase converts a database into PascalCase.

Jump to

Keyboard shortcuts

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