postgresql

package
v1.21.5-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 20 Imported by: 4

Documentation

Index

Constants

View Source
const ErrDupEntryCode = pq.ErrorCode("23505")

ErrDupEntryCode indicates a duplicate primary key i.e. the row already exists, check http://www.postgresql.org/docs/9.3/static/errcodes-appendix.html

View Source
const (
	// PluginName is the name of the plugin
	PluginName = "postgres"
)
View Source
const (
	// PluginName is the name of the plugin
	PluginNameV12 = "postgres12"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DataConverter

type DataConverter interface {
	ToPostgreSQLDateTime(t time.Time) time.Time
	FromPostgreSQLDateTime(t time.Time) time.Time
}

DataConverter defines the API for conversions to/from go types to mysql datatypes

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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