gormdb

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config gormi.Config

func (*Config) BeforeInjectWithRoot added in v0.0.33

func (c *Config) BeforeInjectWithRoot(conf *rootconf.RootConfig)

func (*Config) Build

func (c *Config) Build(dialector gorm.Dialector) (*gorm.DB, error)

func (*Config) Init

func (c *Config) Init()

type DB

type DB struct {
	*gorm.DB
	Conf Config
}

func (*DB) Table

func (db *DB) Table(name string) *gorm.DB

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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