drivers

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectorInterface

type ConnectorInterface interface {
	GetConnection() string
	GetDriver() DriverInterface
	GetDB() any

	Connect() error
}

type DBDriver

type DBDriver string

type DriverInterface

type DriverInterface interface {
	GetDriver() DBDriver
	IsDebug() bool
	NewConnector(name string) (ConnectorInterface, error)
}

type GormQuery

type GormQuery struct {
	// contains filtered or unexported fields
}

func (*GormQuery) Paginate

func (i *GormQuery) Paginate(page, size int) *gorm.DB

func (*GormQuery) SetDB

func (i *GormQuery) SetDB(db *gorm.DB)

type GormQueryInterface

type GormQueryInterface interface {
	SetDB(db *gorm.DB)
	Paginate(page, size int) *gorm.DB
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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