postgresql

package
v0.0.0-...-00b166f Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SysDatabase string = "postgres"
)

Functions

func DatabaseSize

func DatabaseSize(conf ConnectionConfig) (int64, error)

func ExcludedTables

func ExcludedTables(conf ConnectionConfig) ([]string, error)

Types

type ConnectionConfig

type ConnectionConfig struct {
	User     string
	Password string
	Host     string
	Port     string
	Database
	SSlMode bool
}

func (ConnectionConfig) CreateConnection

func (conf ConnectionConfig) CreateConnection() (*sql.DB, error)

func (ConnectionConfig) String

func (c ConnectionConfig) String() string

type Database

type Database struct {
	Name string
	OID  int
}

func Databases

func Databases(conf ConnectionConfig, filter []string) ([]Database, error)

Jump to

Keyboard shortcuts

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