sqlblock

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package sqlblock implements the ```sql rehearse step block: the block's statement(s) run against the DSN from the info string (v0.3 driver: `sqlite:<path>` via the pure-Go driver already in go.mod), with trailing `-- assert-rows:` / `-- assert-row-json:` / `-- capture:` directives checked against the final statement's result rows (REQ: sql-block).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct{}

Executor runs sql step blocks.

func New

func New() *Executor

New returns the sql block executor.

func (*Executor) Kind

func (*Executor) Kind() string

Kind returns "sql".

func (*Executor) Run

Run executes the block's statements against the `dsn=` DSN: every statement but the last is executed for effect (fixture setup), the last one's result rows feed the assertion/capture directives.

Jump to

Keyboard shortcuts

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