gee

package
v0.0.0-...-b7c798b Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SliceSub

func SliceSub[T comparable](s1 []T, s2 []T) []T

difference returns s1 - s2

Types

type Engine

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

func NewEngine

func NewEngine(driver, source string) (e *Engine, err error)

func (*Engine) Close

func (e *Engine) Close()

func (*Engine) Migrate

func (e *Engine) Migrate(value any) error

Migrate table

func (*Engine) NewSession

func (e *Engine) NewSession() *session.Session

func (*Engine) Transaction

func (e *Engine) Transaction(f TxFunc) (result any, err error)

type TxFunc

type TxFunc func(session2 *session.Session) (any, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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