db

package
v0.0.0-...-96b04c8 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Tx

func Tx(afs ...AtomicFunc) (err error)

func WithConditions

func WithConditions(db **gorm.DB, model interface{}, conditions condition.Conditions) error

后续如果有非created_at字段需要加时间选择,需要在conditions中加上time字段

func WithProjectResource

func WithProjectResource(db **gorm.DB, projectName string, resourceType string) ([]model.ProjectResource, error)

Types

type AtomicFunc

type AtomicFunc func(db *gorm.DB) error

Jump to

Keyboard shortcuts

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