httpapi

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2025 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_MEMORY_BYTES = 1024 * 1024

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, dir, dbconn string, port uint16) error

Types

type AssertOpt

type AssertOpt struct {
	IncludeTags []string `json:"include_tags"`
	ExcludeTags []string `json:"exclude_tags"`
	Targets     []string `json:"targets"`
}

type AssertResponse

type AssertResponse struct {
	Tables []AssertTableResult `json:"tables"`
}

type AssertTableResult

type AssertTableResult struct {
	Table       string              `json:"table"`
	PrimaryKeys []string            `json:"primary_keys"`
	Match       bool                `json:"match"`
	Diff        []dbtestify.RowDiff `json:"diff"`
	Error       string              `json:"error,omitzero"`
}

type ListResult

type ListResult struct {
	DataSets []string `json:"datasets"`
}

type SeedOpt

type SeedOpt struct {
	IncludeTags []string `json:"include_tags"`
	ExcludeTags []string `json:"exclude_tags"`
	BatchSize   int      `json:"batch_size"`
	Truncates   []string `json:"truncates"`
	Targets     []string `json:"targets"`
}

type SeedResponse

type SeedResponse struct {
	Tables []SeedTableResult `json:"tables"`
}

type SeedTableResult

type SeedTableResult struct {
	Task     string        `json:"task"`
	Table    string        `json:"table"`
	Success  bool          `json:"success"`
	Duration time.Duration `json:"duration"`
	Error    string        `json:"error,omitzero"`
}

Jump to

Keyboard shortcuts

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