Versions in this module Expand all Collapse all v0 v0.13.3 Aug 17, 2023 v0.13.2 Aug 16, 2023 v0.13.1 Aug 15, 2023 Changes in this version + const DIR_IN + const DIR_INOUT + const DIR_OUT + const DefaultMaxCHARLength + const DefaultMaxVARCHARLength + const FLAVOR_RECORD + const FLAVOR_SIMPLE + const FLAVOR_TABLE + const MarkHidden + const MarkNull + const MarkValid + var Buffers = newBufPool(1 << 16) + var ErrInvalidArgument = errors.New("invalid argument") + var ErrMissingTableOf = errors.New("missing TableOf info") + var MaxTableSize = 128 + var NumberAsString bool + var SkipMissingTableOf = true + var UnknownSimpleType = errors.New("unknown simple type") + func CamelCase(text string) string + func CopyStruct(dest interface{}, src interface{}) error + func FilterAndGroup(userArgs []UserArgument, filter func(string) bool) (filteredArgs [][]UserArgument, err error) + func MustOpenCsv(filename string) *os.File + func OpenCsv(filename string) (*os.File, error) + func ParseDigits(s string, precision, scale int) error + func ParseDocs(ctx context.Context, text string) (map[string]string, error) + func ReadDB(ctx context.Context, db querier, pattern string, filter func(string) bool) (functions []Function, annotations []Annotation, err error) + func ReplOraPh(s string, params []interface{}) string + func SaveFunctionTests(dst io.Writer, functions []Function, pkg, pbImport string, saveStructs bool) error + func SaveFunctions(dst io.Writer, functions []Function, pkg, pbImport string, saveStructs bool) error + func SaveProtobuf(dst io.Writer, functions []Function, pkg string) error + func SetLogger(lgr *slog.Logger) + func UnoCap(text string) string + type Annotation struct + Name string + Other string + Package string + Size int + Type string + func ParseAnnotationsAndDocs(ctx context.Context, packageName, src string) ([]Annotation, map[string]string, error) + func (a Annotation) FullName() string + func (a Annotation) FullOther() string + func (a Annotation) String() string + type Argument struct + AbsType string + Charlength uint + Charset string + Direction direction + Flavor flavor + Name string + Precision uint8 + RecordOf []NamedArgument + Scale uint8 + TableOf *Argument + Type string + TypeName string + func NewArgument(name, dataType, plsTypeName, typeName, dirName string, dir direction, ...) Argument + func (a Argument) IsInput() bool + func (a Argument) IsOutput() bool + func (a Argument) String() string + type Function struct + Alias string + Args []Argument + Documentation string + LastDDL time.Time + Name string + Package string + Replacement *Function + ReplacementIsJSON bool + Returns *Argument + func ApplyAnnotations(functions []Function, annotations []Annotation) []Function + func ParseArguments(userArgs [][]UserArgument, filter func(string) bool, ...) (functions []Function, err error) + func ParseCsv(r io.Reader, filter func(string) bool) (functions []Function, err error) + func ParseCsvFile(filename string, filter func(string) bool) (functions []Function, err error) + func (f Function) AliasedName() string + func (f Function) FullName() string + func (f Function) GenChecks(w io.Writer) (string, error) + func (f Function) HasCursorOut() bool + func (f Function) RealName() string + func (f Function) SaveProtobuf(dst io.Writer, seen map[string]struct{}) error + func (f Function) SaveStruct(dst io.Writer, out bool) error + func (f Function) String() string + func (fun Function) PlsqlBlock(checkName string) (plsql, callFun string) + type NamedArgument struct + Name string + type PlsType struct + Attr string + Charset string + CollectionOf *PlsType + IndexBy string + Length sql.NullInt64 + Prec sql.NullInt64 + RecordOf []*PlsType + Scale sql.NullInt64 + TypeCode string + func (arg PlsType) FromOra(dst, src, varName string) string + func (arg PlsType) GetOra(src, varName string) string + func (arg PlsType) String() string + func (arg PlsType) ToOra(dst, src string, dir direction) (expr string, variable string) + type TypeName struct + Name string + Owner string + Package string + func (tn TypeName) String() string + type UserArgument struct + ArgumentName string + CharLength uint + CharacterSetName string + DataLevel uint8 + DataPrecision uint8 + DataScale uint8 + DataType string + InOut string + LastDDL time.Time + ObjectID uint + ObjectName string + PackageName string + PlsType string + Position uint + SubprogramID uint + TypeLink string + TypeName string + TypeOwner string + TypeSubname string + func ReadCsv(r io.Reader) (userArgs []UserArgument, err error)