postgres

package
v0.0.0-...-0c1ed19 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClosePrimary

func ClosePrimary()

ClosePrimary closes the primary database connection

func CloseReplica

func CloseReplica()

CloseReplica closes the replica database connection

func ConnectToPrimary

func ConnectToPrimary()

ConnectToPrimary connects to the PostgreSQL primary (master) database

func ConnectToReplica

func ConnectToReplica()

ConnectToReplica connects to the PostgreSQL replica (slave) database

func GetPrimaryPClient

func GetPrimaryPClient() *sql.DB

GetMongoClient returns the primary client instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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