postgres

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GormPostgres

type GormPostgres struct {
	rady.Database
	*gorm.DB
}

type GormPostgresConfig

type GormPostgresConfig struct {
	rady.Configuration
	App *rady.Application
}

func (*GormPostgresConfig) GetAutoMigratePostgresDB

func (g *GormPostgresConfig) GetAutoMigratePostgresDB(params *GormPostgresParameter) *GormPostgres

type GormPostgresParameter

type GormPostgresParameter struct {
	rady.Parameter
	Host     *string `value:"rady.postgres.host" default:"127.0.0.1"`
	Port     *string `value:"rady.postgres.port" default:"3306"`
	Database *string `value:"rady.postgres.database"`
	Username *string `value:"rady.postgres.username"`
	Password *string `value:"rady.postgres.password"`
	SSLMode  *string `value:"rady.postgres.sslmode" default:"disable"`
}

Jump to

Keyboard shortcuts

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