typemap

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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