postgres

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB pkdb.DB

func (*DB) Close

func (db *DB) Close() error

func (*DB) Config

func (db *DB) Config() any

func (*DB) Inject

func (db *DB) Inject(configName string)

TODO:

func (*DB) SetEntity

func (db *DB) SetEntity()

func (*DB) Table

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

func (*DB) TableName

func (db *DB) TableName(name string) string

type DatabaseConfig

type DatabaseConfig pkdb.DatabaseConfig

func (*DatabaseConfig) Build

func (conf *DatabaseConfig) Build() *gorm.DB

func (*DatabaseConfig) Init

func (conf *DatabaseConfig) Init()

Jump to

Keyboard shortcuts

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