data

package
v0.1.0-preview.4 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package data defines canonical descriptors for generated data boundaries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Transactional

func Transactional() sdk.Definition

Transactional marks a provider-owned method that must run inside an explicit database/sql transaction.

The generated wrapper propagates context, commits only on success, rolls back on error or panic, and records the owning application module. Isolation is optional and readOnly defaults to false.

// @import { Transactional } from "github.com/spice-framework/spice/annotation/data"
// @Transactional(isolation="serializable")

func TransactionalHandler

func TransactionalHandler(
	_ context.Context,
	invocation sdk.Invocation,
) (sdk.Result, error)

TransactionalHandler contributes an explicit database transaction boundary.

Types

This section is empty.

Jump to

Keyboard shortcuts

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