postgres

package
v1.2.19-prerelease07 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: MIT Imports: 22 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ErrDupEntry = "23505"

ErrDupEntry 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 ErrInsufficientResources = "53000"
View Source
const ErrTooManyConnections = "53300"
View Source
const (
	// PluginName is the name of the plugin
	PluginName = "postgres"
)

Variables

This section is empty.

Functions

func GetTestClusterOption added in v0.16.0

func GetTestClusterOption() (*pt.TestBaseOptions, error)

GetTestClusterOption return test options

Types

type DataConverter

type DataConverter interface {
	ToPostgresDateTime(t time.Time) time.Time
	FromPostgresDateTime(t time.Time) time.Time
}

DataConverter defines the API for conversions to/from go types to postgres datatypes TODO https://github.com/uber/cadence/issues/2892 There are some reasons: r application layer is not consistent with timezone: for example, in some case we write timestamp with local timezone but when the time.Time is converted from "JSON"(from paging token), the timezone is missing

Jump to

Keyboard shortcuts

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