Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
SqlPackage string // "pgx/v5", "pgx/v4", "database/sql"
EmitPointersForNull bool
}
Options configures Go type generation.
type TypeMapper ¶
type TypeMapper interface {
GoType(col *catalog.Column, enums []*catalog.Enum, opts Options) string
}
TypeMapper maps SQL column types to Go types.
func NewTypeMapper ¶
func NewTypeMapper(engine string) (TypeMapper, error)
NewTypeMapper creates a type mapper for the given database engine.
Click to show internal directories.
Click to hide internal directories.