postgres

package
v1.23.8 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package postgres provides PostgresConfig and registers the GORM postgres dialector on import.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	InitDb               bool
	SyncForce            bool
	SyncVerbose          bool
	AliasName            string
	UserName             string
	Password             string
	Host                 string
	Port                 int
	DbName               string
	MaxIdle              int
	MaxConn              int
	SSL                  string
	TimeZone             string
	AdvancedConfig       string
	PreferSimpleProtocol bool
}

Config postgres connection settings.

func (*Config) Build

func (c *Config) Build() (b persistence.BaseConfig)

type OpenOpts

type OpenOpts struct {
	PreferSimpleProtocol bool
}

OpenOpts carries postgres driver options from Config.Build.

Jump to

Keyboard shortcuts

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