pg

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertQueryPlaceholders

func ConvertQueryPlaceholders(query string) string

func DeleteQuery

func DeleteQuery(tableName, index string) string

func DropTableQuery

func DropTableQuery(name string, ifExists bool) string

func InsertQuery

func InsertQuery(tableName string, columnNames []string, autoIncrementField string) string

func IsPostgres

func IsPostgres(driver string) bool

func NewFieldQueries

func NewFieldQueries(fields []*types.ColumnOptions) string

func NewFieldQuery

func NewFieldQuery(field *types.ColumnOptions) string

func NewPrimaryKeyQuery

func NewPrimaryKeyQuery(fields []*types.ColumnOptions) string

func NewTableQuery

func NewTableQuery(name string, fields []*types.ColumnOptions, ifNotExists bool) string

func ShowTablesQuery

func ShowTablesQuery(name string) string

func UpdateQuery

func UpdateQuery(tableName, index string, columnNames []string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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