kotlin

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Offset

func Offset(v int) int

Types

type Constant

type Constant struct {
	Name  string
	Type  string
	Value string
}

type Enum

type Enum struct {
	Name      string
	Comment   string
	Constants []Constant
}

type Field

type Field struct {
	Name    string
	Type    ktType
	Comment string
}

type Params

type Params struct {
	Struct *Struct
}

func (Params) Args

func (v Params) Args() string

func (Params) Bindings

func (v Params) Bindings() string

type Query

type Query struct {
	ClassName    string
	Cmd          string
	Comments     []string
	MethodName   string
	FieldName    string
	ConstantName string
	SQL          string
	SourceName   string
	Ret          QueryValue
	Arg          Params
}

A struct used to generate methods and fields on the Queries struct

type QueryValue

type QueryValue struct {
	Emit               bool
	Name               string
	Struct             *Struct
	Typ                ktType
	JDBCParamBindCount int
}

func (QueryValue) EmitStruct

func (v QueryValue) EmitStruct() bool

func (QueryValue) IsStruct

func (v QueryValue) IsStruct() bool

func (QueryValue) ResultSet

func (v QueryValue) ResultSet() string

func (QueryValue) Type

func (v QueryValue) Type() string

type Struct

type Struct struct {
	Table             plugin.Identifier
	Name              string
	Fields            []Field
	JDBCParamBindings []Field
	Comment           string
}

Jump to

Keyboard shortcuts

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