parity

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 6 Imported by: ? modules, 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 parity checks that the plugin's tables keep the names, columns, column types and primary keys of the plugin they replace.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(tables schema.Tables, m Manifest, ex []Exception, pending []string) []string

Check returns one human-readable line per difference between tables and the manifest; an empty result means parity holds. The _cq_id and _cq_parent_id columns are ignored on the plugin side, and extra plugin columns are allowed as long as the primary key set is equal.

func Load

func Load() (Manifest, []Exception, []string, error)

Load returns the embedded manifest, exceptions and pending table names.

Types

type Column

type Column struct {
	Name, Type string
	PK         bool
}

type ConfigKey

type ConfigKey struct {
	Path, Type string
	Default    any
}

ConfigKey is one key of the expected plugin spec. Paths are dotted; array items are written with "[]", for example "app_auth[].org".

func ConfigManifest

func ConfigManifest() ([]ConfigKey, error)

ConfigManifest returns the embedded list of expected configuration keys.

type Exception

type Exception struct{ Table, Column, Reason string }

Exception excuses a known difference. Column "" excuses the whole table.

type Manifest

type Manifest struct{ Tables []Table }

type Table

type Table struct {
	Name, Parent string
	Columns      []Column
}

Table is one expected table. Parent is the parent table name, or "" for a top-level table.

Directories

Path Synopsis
Command gen builds parity/manifest.json from the markdown table docs of the plugin being reimplemented.
Command gen builds parity/manifest.json from the markdown table docs of the plugin being reimplemented.

Jump to

Keyboard shortcuts

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