pgsql

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneTableStruct

func CloneTableStruct(
	dst string,
	src string,
	seq string,
) (
	create []string,
	drop []string,
)

CloneTableStruct Clone table structure.

func InsertOnConflict

func InsertOnConflict(
	onConflictColumns []string,
	updateColumns []string,
) (prepare string, args []interface{})

InsertOnConflict Rely on the unique index of the table.

func Prepare

func Prepare(str string) string

Prepare Fix pgsql SQL statement, ?, ?, ?... => $1, $2, $3...

func PrepareString

func PrepareString(prepare string, args []interface{}) string

PrepareString Merge executed SQL statements and parameters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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