postgres

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FieldToColumn

func FieldToColumn(s string) string

FieldToColumn converts struct field name to database column name.

func QuoteColumn

func QuoteColumn(column string) string

QuoteColumn quotes a column name.

Types

type QueryContainer

type QueryContainer struct {
	TableName         string
	ColumnFieldName   map[string]string
	ColumnDefinitions []string
	ColumnNames       []string
	ColumnNotString   map[string]bool

	FieldColumnName map[string]string

	CreateTable string
	DropTable   string

	Insert                 string
	InsertOnConflictUpdate string

	UpdateByID string
	SelectByID string
	DeleteByID string

	SelectPrefix      string
	SelectCountPrefix string
	DeletePrefix      string
	UpdatePrefix      string
}

func New

func New(obj interface{}, structInfo *structinfo.StructInfo, tableNamePrefix string) *QueryContainer

Jump to

Keyboard shortcuts

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