orms

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Executes

func Executes(timeout time.Duration, obj ...ExecObject) error

Executes ... Concurrently perform multiple database manipulation, with timeout-killed option

Types

type ExecObject

type ExecObject struct {
	DB     *gorm.DB
	Entity interface{}
	Where  []interface{}
	Method string
}

ExecObject ... Gorm execution object: DB must not have instant-execution method, but can hold condition clauses beforehand, Entity should be an addressable value, just as gorm required, Where field is optional, Method is the final (instant-execution) method

Jump to

Keyboard shortcuts

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