orm

package
v0.0.0-...-37b44d8 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOrm

func NewOrm(c *Config, w logger.Writer) *gorm.DB

Types

type Config

type Config struct {
	User            string
	Password        string
	Host            string
	Port            int
	DBName          string
	MaxIdleConns    int
	MaxOpenConns    int
	ConnMaxLifetime int
}

type Scopes

type Scopes func(*gorm.DB) *gorm.DB

func Paginate

func Paginate(page, pageSize int) Scopes

Jump to

Keyboard shortcuts

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