pygen

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: ISC Imports: 9 Imported by: 0

Documentation

Overview

Package pygen is the Python generator: the port of PythonCG.java and python.vm for no ORM. The DTO and DAO of a Python project go to one package, <folders target> of settings.xml.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Package

func Package(s *sdmxml.Settings) string

Package is the Python package of <folders target>: dbal/models -> dbal.models.

Types

type DAO

type DAO struct {
	// contains filtered or unexported fields
}

func NewDAO

func NewDAO(core *cg.Core, s *sdmxml.Settings, sdm *sdmxml.Sdm) (*DAO, error)

func (*DAO) Translate

func (g *DAO) Translate(dao sdmxml.DaoClass) (string, error)

type DTO

type DTO struct {
	// contains filtered or unexported fields
}

func NewDTO

func NewDTO(core *cg.Core, s *sdmxml.Settings, sdm *sdmxml.Sdm) (*DTO, error)

func (*DTO) Translate

func (g *DTO) Translate(className string) (string, error)

Jump to

Keyboard shortcuts

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