adapter

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package adapter defines how datastores execute query.Statement values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Querier

type Querier interface {
	Execute(ctx context.Context, stmt *query.Statement) (Rows, error)
}

Querier executes a query.Statement. Implementations must support every statement, so Execute never returns an "unsupported" error.

type Rows

type Rows interface {
	// Next returns false when rows are exhausted or on error; check Err.
	Next() bool
	// Scan copies the current row's columns into dest.
	Scan(dest ...any) error
	// Close releases the cursor's resources.
	Close() error
	// Err returns the error, if any, that stopped iteration.
	Err() error
}

Rows is a driver-agnostic result cursor mirroring *sql.Rows.

Directories

Path Synopsis
Package ast holds a SELECT query as plain Go structs with no SQL text.
Package ast holds a SELECT query as plain Go structs with no SQL text.
Package query is a type-safe builder for package ast.
Package query is a type-safe builder for package ast.
Package sqlite implements adapter.Querier for SQLite.
Package sqlite implements adapter.Querier for SQLite.

Jump to

Keyboard shortcuts

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