storage

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBConnect

func DBConnect(driver string, connectionParams string) (*sql.DB, error)

DBConnect establishes a connection to the database using the driver and connection information.

Note that only "postgres" is supported as the driver right now.

func DBConnectionString

func DBConnectionString(cfg *configloader.ConnectionConfig) string

DBConnectionString generates a properly formatted connection string that can be used to establish a database connection. Note that it always creates a connection string with sslmode disabled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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