util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: EUPL-1.2 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyReaderPermissions

func ApplyReaderPermissions(ctx context.Context, postgres *lshcore.Postgres, db *sql.DB) error

func CreateDatabase added in v1.0.0

func CreateDatabase(ctx context.Context, postgres *lshcore.Postgres, db *sql.DB) error

func GetCurrentEncoding added in v1.0.0

func GetCurrentEncoding(ctx context.Context, postgres *lshcore.Postgres, db *sql.DB) (string, error)

func GetCurrentLocale added in v1.0.0

func GetCurrentLocale(ctx context.Context, postgres *lshcore.Postgres, db *sql.DB) (string, error)

func GetZalandoConnection added in v1.0.0

func GetZalandoConnection(ctx context.Context, c client.Client, pg *pgv1.Postgresql, user string, database string) (url.URL, error)

func IgnoreDatabaseAlreadyExist added in v1.0.0

func IgnoreDatabaseAlreadyExist(err error) error

func MutateZalandoPostgres

func MutateZalandoPostgres(postgres *lshcore.Postgres, bucket *lshcore.Bucket, bucketName string, pg *pgv1.Postgresql)

Types

This section is empty.

Jump to

Keyboard shortcuts

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