postgres

package
v0.0.396 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 7 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 *postgresclass.ClusterInstance, db string) string

func UserOrDefault added in v0.0.355

func UserOrDefault(user string) string

Ensure backwards compatibility

Types

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 */
	// 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) GetName added in v0.0.118

func (x *DatabaseIntent) GetName() string

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

Jump to

Keyboard shortcuts

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