gen

package
v0.1.40 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTable

func CreateTable(structType *metamodel.StructType, buf *bytes.Buffer) string

func DeleteFrom

func DeleteFrom(st *metamodel.StructType, buf *bytes.Buffer) string

func InsertInto

func InsertInto(structType *metamodel.StructType, buf *bytes.Buffer) string

func Select

func Select(structType *metamodel.StructType, buf *bytes.Buffer) string

func SelectBy

func SelectBy(structType *metamodel.StructType, unique []*metamodel.StructField, buf *bytes.Buffer) string

func Update

func Update(structType *metamodel.StructType, buf *bytes.Buffer) string

Types

type Gen

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

func NewGen

func NewGen() (*Gen, error)

func (*Gen) CreateCrud

func (f *Gen) CreateCrud(st *metamodel.StructType, buf *bytes.Buffer) ([]byte, error)

func (*Gen) CreateHTTP

func (f *Gen) CreateHTTP(st *metamodel.StructType, buf *bytes.Buffer) ([]byte, error)

func (*Gen) CreateHttpd

func (f *Gen) CreateHttpd(st *metamodel.StructType, buf *bytes.Buffer) ([]byte, error)

func (*Gen) CreateStruct

func (f *Gen) CreateStruct(st *metamodel.StructType, buf *bytes.Buffer) ([]byte, error)

Directories

Path Synopsis
This code has been generated by struct.tmpl, please don't edit, but keep the linters happy
This code has been generated by struct.tmpl, please don't edit, but keep the linters happy

Jump to

Keyboard shortcuts

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