Documentation ¶
Index ¶
Constants ¶
View Source
const ( ModeDefault = iota ModeMandatory ModeOptional ModeCriteria // Public ... Public Visibility = "public" // Private ... Private Visibility = "private" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuiltinType ¶
BuiltinType ...
func (BuiltinType) Fingerprint ¶
func (bt BuiltinType) Fingerprint() string
Fingerprint implements Type interface.
func (BuiltinType) String ¶
func (bt BuiltinType) String() string
type CustomType ¶
type CustomType struct {
// contains filtered or unexported fields
}
CustomType ...
func (CustomType) Fingerprint ¶
func (ct CustomType) Fingerprint() string
Fingerprint implements Type interface.
func (CustomType) String ¶
func (ct CustomType) String() string
String implements Stringer interface.
func (CustomType) TypeOf ¶ added in v0.11.0
func (ct CustomType) TypeOf(m int32) reflect.Type
TypeOf ...
func (CustomType) ValueOf ¶ added in v0.11.0
func (ct CustomType) ValueOf(m int32) interface{}
ValueOf ...
type Formatter ¶ added in v0.11.0
type Formatter struct { Visibility Visibility Acronyms map[string]string }
func (*Formatter) Identifier ¶ added in v0.11.0
func (*Formatter) IdentifierPrivate ¶ added in v0.11.0
type Generator ¶
type Generator struct { Formatter *Formatter Version float64 Pkg string Imports []string Plugins []Plugin }
type Plugin ¶ added in v0.11.0
type Plugin interface { PropertyType(*pqt.Column, int32) string WhereClause(*pqt.Column) string // SetClause allow to generate alternative code for column for update queries. // Available placeholders: // // {{ .selector }} - property of patch object // {{ .column }} - const that represents given column // {{ .composer }} - Composer instance SetClause(*pqt.Column) string ScanClause(*pqt.Column) string Static(*pqt.Schema) string }
Click to show internal directories.
Click to hide internal directories.