conformance

package
v0.550000.3 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package conformance describes the query fixtures shared by the Go, Rust, and SQLite test runners. It is used by tests and development tools only.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Case

type Case struct {
	Name       string      `json:"name"`
	SQL        string      `json:"sql"`
	NativeSQL  string      `json:"native_sql,omitempty"`
	Setup      []string    `json:"setup,omitempty"`
	Parameters []Parameter `json:"parameters,omitempty"`
	Columns    []Column    `json:"columns,omitempty"`
	Rows       [][]*string `json:"rows,omitempty"`
	Error      string      `json:"error,omitempty"`
	SQLite     bool        `json:"sqlite,omitempty"`
}

func Load

func Load(files fs.FS) ([]Case, error)

type Column

type Column struct {
	Name      string `json:"name"`
	Type      string `json:"type"`
	Nullable  bool   `json:"nullable"`
	SQLType   string `json:"sql_type,omitempty"`
	Precision int64  `json:"precision,omitempty"`
	Scale     int64  `json:"scale,omitempty"`
}

type Parameter

type Parameter struct {
	Name  string `json:"name,omitempty"`
	Type  string `json:"type"`
	Value string `json:"value,omitempty"`
}

Jump to

Keyboard shortcuts

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