dsn

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package dsn builds Postgres DSNs. Package dsn 构建 Postgres DSN。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(cfg Config) (string, error)

Build returns the Postgres DSN for cfg. Build 返回 cfg 的 Postgres DSN。

Types

type Config

type Config struct {
	Host     string
	Port     int
	User     string
	Password string
	Database string
	SSLMode  string
}

Config configures Build. Config 配置 Build。

Jump to

Keyboard shortcuts

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