backend_postgres

package
v0.11.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoCountPostgres

func DoCountPostgres(
	postgresHost string,
	postgresPort int,
	postgresUser string,
	postgresPassword string,
	postgresDatabase string,
	postgresSslmode string,
	hostname string,
) (int, error)

func GetCountPostgres

func GetCountPostgres(
	postgresHost string,
	postgresPort int,
	postgresUser string,
	postgresPassword string,
	postgresDatabase string,
	postgresSslmode string,
	hostname string,
) (int, error)

func RunMigrations

func RunMigrations(
	postgresHost string,
	postgresPort int,
	postgresUser string,
	postgresPassword string,
	postgresDatabase string,
	postgresSslmode string,
	hostname string,
) error

Types

type Counter

type Counter struct {
	gorm.Model
	ID      int `gorm:"primaryKey"`
	Counter int
}

Jump to

Keyboard shortcuts

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