postgres

package
v0.0.440 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_library_oss_postgres_types_proto protoreflect.FileDescriptor

Functions

func ConnectionUri added in v0.0.355

func ConnectionUri(cluster ClusterInstance, db string) string

func UserOrDefault added in v0.0.355

func UserOrDefault(user string) string

Ensure backwards compatibility

Types

type ClusterInstance added in v0.0.440

type ClusterInstance interface {
	GetUser() string
	GetPassword() string
	GetAddress() string
	GetSslMode() string
}

type ClusterIntent

type ClusterIntent struct {

	// If set, overrides the server package used to instantiate the local database cluster.
	Server *schema.PackageRef `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
	// If set, overrides the root password used to access the cluster.
	PasswordSecret *schema.PackageRef `protobuf:"bytes,2,opt,name=password_secret,json=passwordSecret,proto3" json:"password_secret,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterIntent) Descriptor deprecated

func (*ClusterIntent) Descriptor() ([]byte, []int)

Deprecated: Use ClusterIntent.ProtoReflect.Descriptor instead.

func (*ClusterIntent) GetPasswordSecret

func (x *ClusterIntent) GetPasswordSecret() *schema.PackageRef

func (*ClusterIntent) GetServer

func (x *ClusterIntent) GetServer() *schema.PackageRef

func (*ClusterIntent) ProtoMessage

func (*ClusterIntent) ProtoMessage()

func (*ClusterIntent) ProtoReflect

func (x *ClusterIntent) ProtoReflect() protoreflect.Message

func (*ClusterIntent) Reset

func (x *ClusterIntent) Reset()

func (*ClusterIntent) String

func (x *ClusterIntent) String() string

type DatabaseIntent added in v0.0.118

type DatabaseIntent struct {

	// The database name is applied as is (e.g. it is case-sensitive).
	Name                             string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Schema                           []*schema.FileContents `protobuf:"bytes,2,rep,name=schema,proto3" json:"schema,omitempty"`
	SkipSchemaInitializationIfExists bool                   `` /* 164-byte string literal not displayed */
	ProvisionHelperFunctions         bool                   `` /* 136-byte string literal not displayed */
	// Remove the helper functions after provisioning - no matter if the deployment was successful or not.
	AutoRemoveHelperFunctions bool `` /* 141-byte string literal not displayed */
	EnableTracing             bool `protobuf:"varint,6,opt,name=enable_tracing,json=enableTracing,proto3" json:"enable_tracing,omitempty"`
	// contains filtered or unexported fields
}

func (*DatabaseIntent) Descriptor deprecated added in v0.0.118

func (*DatabaseIntent) Descriptor() ([]byte, []int)

Deprecated: Use DatabaseIntent.ProtoReflect.Descriptor instead.

func (*DatabaseIntent) GetAutoRemoveHelperFunctions added in v0.0.407

func (x *DatabaseIntent) GetAutoRemoveHelperFunctions() bool

func (*DatabaseIntent) GetEnableTracing added in v0.0.429

func (x *DatabaseIntent) GetEnableTracing() bool

func (*DatabaseIntent) GetName added in v0.0.118

func (x *DatabaseIntent) GetName() string

func (*DatabaseIntent) GetProvisionHelperFunctions added in v0.0.400

func (x *DatabaseIntent) GetProvisionHelperFunctions() bool

func (*DatabaseIntent) GetSchema added in v0.0.118

func (x *DatabaseIntent) GetSchema() []*schema.FileContents

func (*DatabaseIntent) GetSkipSchemaInitializationIfExists added in v0.0.209

func (x *DatabaseIntent) GetSkipSchemaInitializationIfExists() bool

func (*DatabaseIntent) ProtoMessage added in v0.0.118

func (*DatabaseIntent) ProtoMessage()

func (*DatabaseIntent) ProtoReflect added in v0.0.118

func (x *DatabaseIntent) ProtoReflect() protoreflect.Message

func (*DatabaseIntent) Reset added in v0.0.118

func (x *DatabaseIntent) Reset()

func (*DatabaseIntent) String added in v0.0.118

func (x *DatabaseIntent) String() string

Directories

Path Synopsis
prepare
cluster command
clusterinstance command
database command

Jump to

Keyboard shortcuts

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