database

package
v1.13.10 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteTxWithinCtx

func ExecuteTxWithinCtx(ctx context.Context, fn func(context.Context) error) error

Note: All database implementations must support tx handling

todo: support other database types when we get there

Types

type QueryOption added in v1.8.1

type QueryOption func(*QueryOptions)

func FromProtoQueryOptions added in v1.8.1

func FromProtoQueryOptions(protoOptions *commonpb.QueryOptions) []QueryOption

func WithAscending added in v1.8.1

func WithAscending() QueryOption

func WithDescending added in v1.8.1

func WithDescending() QueryOption

func WithLimit added in v1.8.1

func WithLimit(limit int) QueryOption

func WithOrder added in v1.8.1

func WithOrder(order commonpb.QueryOptions_Order) QueryOption

func WithPagingToken added in v1.8.1

func WithPagingToken(pagingToken *commonpb.PagingToken) QueryOption

type QueryOptions added in v1.8.1

type QueryOptions struct {
	Limit       int
	PagingToken *commonpb.PagingToken
	Order       commonpb.QueryOptions_Order
}

func ApplyQueryOptions added in v1.8.1

func ApplyQueryOptions(options ...QueryOption) QueryOptions

func DefaultQueryOptions added in v1.8.1

func DefaultQueryOptions() QueryOptions

Directories

Path Synopsis
prisma

Jump to

Keyboard shortcuts

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