db

package
v0.0.0-...-42ca271 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pw

type Pw[E any, R any] struct {
	Entity E `db:""`
	RecCtx R `db:""`
}

Pw wraps a domain entity and a record context together. The type parameter E can either be a domain entity type or the pointer type thereof, depending on whether the DAF returns / receives by value or by pointer. RecCtx holds platform-specific context information about the database record, e.g., an optimistic locking token and/or a record Id.

func (Pw[E, R]) Copy

func (s Pw[E, R]) Copy(e E) Pw[E, R]

Helper method

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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