Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
spirit
command
|
|
|
pkg
|
|
|
autoscale
Package autoscale holds the primitives shared by spirit's phase-level thread-count controllers.
|
Package autoscale holds the primitives shared by spirit's phase-level thread-count controllers. |
|
buildinfo
Package buildinfo provides build metadata for Spirit binaries.
|
Package buildinfo provides build metadata for Spirit binaries. |
|
change
Package change contains binary log subscription functionality.
|
Package change contains binary log subscription functionality. |
|
check
Package check holds the checks spirit's runners make before and while they change data: configuration, privileges, and refusals of tables and statements spirit does not support.
|
Package check holds the checks spirit's runners make before and while they change data: configuration, privileges, and refusals of tables and statements spirit does not support. |
|
checkpoint
Package checkpoint owns the checkpoint table shared by all three runners (migration, move, datasync): its schema, lifecycle (create / drop / exists), and row read/write.
|
Package checkpoint owns the checkpoint table shared by all three runners (migration, move, datasync): its schema, lifecycle (create / drop / exists), and row read/write. |
|
checksum
Package checksum verifies that a copy of a table matches its source while the source keeps taking writes.
|
Package checksum verifies that a copy of a table matches its source while the source keeps taking writes. |
|
concurrency
Package concurrency is the autoscaling setup shared by the migrate, move and sync runners: given the Aurora probe for every target server, Engage decides whether autoscaling engages, derives the thread and flush bounds (Derive), and overrides the configured thread counts when it does.
|
Package concurrency is the autoscaling setup shared by the migrate, move and sync runners: given the Aurora probe for every target server, Engage decides whether autoscaling engages, derives the thread and flush bounds (Derive), and overrides the configured thread counts when it does. |
|
copier
Package copier copies rows from one table to another.
|
Package copier copies rows from one table to another. |
|
copier/copiertest
Package copiertest provides a Copier stub for tests of the runners that report copier state, so every runner package shares one definition.
|
Package copiertest provides a Copier stub for tests of the runners that report copier state, so every runner package shares one definition. |
|
datasync
Package datasync implements the `sync` command: a continuous, heterogeneous data sync.
|
Package datasync implements the `sync` command: a continuous, heterogeneous data sync. |
|
dbconn
Package dbconn contains a series of database-related utility functions.
|
Package dbconn contains a series of database-related utility functions. |
|
dbconn/sqlescape
Package sqlescape provides SQL escaping functionality.
|
Package sqlescape provides SQL escaping functionality. |
|
flags
Package flags holds the command-line flags shared by the migrate, move and sync commands.
|
Package flags holds the command-line flags shared by the migrate, move and sync commands. |
|
fmt
Package fmt provides the `spirit fmt` subcommand, which canonicalizes CREATE TABLE .sql files by round-tripping them through a real MySQL server.
|
Package fmt provides the `spirit fmt` subcommand, which canonicalizes CREATE TABLE .sql files by round-tripping them through a real MySQL server. |
|
host
Package host groups database connections that share a MySQL server endpoint.
|
Package host groups database connections that share a MySQL server endpoint. |
|
lint
Package lint provides a framework for static analysis of MySQL schema definitions and DDL statements.
|
Package lint provides a framework for static analysis of MySQL schema definitions and DDL statements. |
|
lint/example
Package example provides example linters to demonstrate the linter framework.
|
Package example provides example linters to demonstrate the linter framework. |
|
metrics
Package metrics contains a sink interface to be used by clients to implement sink.
|
Package metrics contains a sink interface to be used by clients to implement sink. |
|
migration
Package migration contains the logic for running online schema changes.
|
Package migration contains the logic for running online schema changes. |
|
parser/ast
Package ast is the abstract syntax tree parsed from a SQL statement by parser.
|
Package ast is the abstract syntax tree parsed from a SQL statement by parser. |
|
runtime
Package runtime holds the runner pieces that pkg/migration, pkg/move and pkg/datasync would otherwise each keep a copy of, and let drift apart.
|
Package runtime holds the runner pieces that pkg/migration, pkg/move and pkg/datasync would otherwise each keep a copy of, and let drift apart. |
|
sentinel
Package sentinel implements the "sentinel table" cutover gate shared by the migration and move runners.
|
Package sentinel implements the "sentinel table" cutover gate shared by the migration and move runners. |
|
statement
Package statement is a wrapper around the parser with some added functionality.
|
Package statement is a wrapper around the parser with some added functionality. |
|
table
Package table contains some common utilities for working with tables such as a 'Chunker' feature.
|
Package table contains some common utilities for working with tables such as a 'Chunker' feature. |
|
table/asserty
Package asserty offers functionality to assert for certain DB properties.
|
Package asserty offers functionality to assert for certain DB properties. |
|
testutils
Package testutils contains some common utilities used exclusively by the test suite.
|
Package testutils contains some common utilities used exclusively by the test suite. |
|
throttler
Package throttler contains code to throttle the rate of writes to a table.
|
Package throttler contains code to throttle the rate of writes to a table. |
|
utils
Package utils contains some common utilities used by all other packages.
|
Package utils contains some common utilities used by all other packages. |
Click to show internal directories.
Click to hide internal directories.