Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Bool = Primitive("bool") Int = Primitive("int") Int8 = Primitive("int8") Int16 = Primitive("int16") Int32 = Primitive("int32") Int64 = Primitive("int64") Uint = Primitive("uint") Uint8 = Primitive("uint8") Byte = Primitive("byte") Uint16 = Primitive("uint16") Uint32 = Primitive("uint32") Uint64 = Primitive("uint64") Uintptr = Primitive("uintptr") Float32 = Primitive("float32") Float64 = Primitive("float64") Complex64 = Primitive("complex64") Complex128 = Primitive("complex128") String = Primitive("string") )
View Source
var DefaultFS embed.FS
Functions ¶
This section is empty.
Types ¶
type Basic ¶
type Basic struct { GoType GoType Name string PostgresType string PostgresSerialType string Annotations []string }
func (*Basic) GetAnnotations ¶
type EmbedType ¶
type EmbedType struct { Fields []*StructField Basic }
func (*EmbedType) GetPostgresSerialType ¶
func (*EmbedType) GetPostgresType ¶
type GoType ¶
type Model ¶
type Model struct { Primitives []*PrimitiveType Arrays []*ArrayType Maps []*MapType Structs []*StructType }
type PrimitiveType ¶
type PrimitiveType struct {
Basic `yaml:",inline"`
}
func (*PrimitiveType) GetPostgresSerialType ¶
func (pt *PrimitiveType) GetPostgresSerialType() string
func (*PrimitiveType) GetPostgresType ¶
func (pt *PrimitiveType) GetPostgresType() string
type StructField ¶
type StructType ¶
type StructType struct { Fields []*StructField PrimaryKey []*StructField Uniques [][]*StructField Basic }
func (*StructType) GetPostgresSerialType ¶
func (st *StructType) GetPostgresSerialType() string
func (*StructType) GetPostgresType ¶
func (st *StructType) GetPostgresType() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.