postgres

package
v2.10.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(destDir string, dbConn DBConnection, genTemplate ...template.Template) (err error)

Generate generates jet files at destination dir from database connection details

func GenerateDSN

func GenerateDSN(dsn, schema, destDir string, templates ...template.Template) error

GenerateDSN generates jet files using dsn connection string

Types

type DBConnection

type DBConnection struct {
	Host     string
	Port     int
	User     string
	Password string
	SslMode  string
	Params   string

	DBName     string
	SchemaName string
}

DBConnection contains postgres connection details

Jump to

Keyboard shortcuts

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