Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildSqlcConfig ¶
func BuildSqlcConfig(schema *config.SchemaConfig) *sqlcConfig
BuildSqlcConfig constructs a sqlc.yaml config from a pgxgen v2 schema. All paths are prefixed with "../" because the generated sqlc.yaml lives in .pgxgen/sqlc.yaml (one level deeper than the project root).
func PostProcess ¶
func PostProcess(l logger.Logger, configDir string, schema *config.SchemaConfig, cfg *sqlcConfig) error
PostProcess handles: 1. Removing models.go from each sqlc output dir 2. Replacing bare type references with qualified imports (User → models.User)
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator handles sqlc config generation and invocation.
func NewGenerator ¶
NewGenerator creates a new sqlc generator.
Click to show internal directories.
Click to hide internal directories.