postgres

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultPostgresDB = "postgres"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*sql.DB
}

type KubeDBClientBuilder

type KubeDBClientBuilder struct {
	// contains filtered or unexported fields
}

func NewKubeDBClientBuilder

func NewKubeDBClientBuilder(kc client.Client, db *api.Postgres) *KubeDBClientBuilder

func (*KubeDBClientBuilder) GetPostgresClient

func (o *KubeDBClientBuilder) GetPostgresClient() (*Client, error)

func (*KubeDBClientBuilder) GetPostgresXormClient

func (o *KubeDBClientBuilder) GetPostgresXormClient() (*XormClient, error)

func (*KubeDBClientBuilder) WithContext added in v0.0.7

func (*KubeDBClientBuilder) WithPod

func (o *KubeDBClientBuilder) WithPod(podName string) *KubeDBClientBuilder

func (*KubeDBClientBuilder) WithPostgresDB

func (o *KubeDBClientBuilder) WithPostgresDB(pgDB string) *KubeDBClientBuilder

func (*KubeDBClientBuilder) WithURL

type XormClient

type XormClient struct {
	*xorm.Engine
}

Jump to

Keyboard shortcuts

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