result

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package result defines the shared query result type exchanged between the query/schema packages (producers) and the format/cli packages (consumers). It is a dependency-free base layer to avoid import cycles.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Columns      []string
	Rows         [][]any
	RowsAffected int64
	LastInsertID int64
}

Result is the uniform outcome of any database operation. For SELECT-like queries Columns and Rows are populated. For DML/DDL RowsAffected (and LastInsertID where available) are populated.

func Empty

func Empty() Result

Empty returns a zero-valued Result for operations that produce no rows.

Jump to

Keyboard shortcuts

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