postgres

package
v0.0.0-...-d604252 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDB

func NewDB(c *Config) (*bun.DB, error)

NewDB creates a new instance of bun.DB.

Types

type Config

type Config struct {
	Host        string
	DBName      string
	Password    string
	Port        string
	Debug       bool
	MaxOpenConn int
	MaxIdleConn int
	User        string
	SSLMode     string
}

Config holds the DB configs.

Jump to

Keyboard shortcuts

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