doltutils

package
v0.0.0-...-4f4d58c Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMeta

func CreateMeta(t *testing.T) []*datas.CommitMeta

func GetMergeCommitsAfter

func GetMergeCommitsAfter(ctx context.Context, db *doltdb.DoltDB, current *doltdb.Commit, afterHash hash.Hash) ([]*doltdb.Commit, error)

GetMergeCommitsAfter iterates through the commit graph backwards until it finds `afterHash`, only ever following a a commits first parent. The merge commits are returned in order from the oldest to the newest

func GetMergeCommitsBetween

func GetMergeCommitsBetween(ctx context.Context, db *doltdb.DoltDB, start, end hash.Hash) ([]*doltdb.Commit, error)

GetMergeCommitsBetween walks the commit log and returns ordered merge commits from the commit after start, to the commit equal to end.

func GetRows

func GetRows(ctx context.Context, root doltdb.RootValue, tableName string) (types.Map, schema.Schema, error)

GetRows gets a tables row data and schema from a rootValue and table name

func GetScoredTables

func GetScoredTables(ctx context.Context, additonalNames []string, root doltdb.RootValue) ([]string, error)

gets the lists of tables that are scored. This filters out any tables with the prefix dolt_

func GetTestEnv

func GetTestEnv(ctx context.Context, t *testing.T) *env.DoltEnv

Types

type ProllyDiffIter

type ProllyDiffIter interface {
	Next(ctx context.Context) (tree.Diff, error)
	Close(ctx context.Context) error
}

ProllyDiffIter iterates over diffs.

func NewDiffIterKeyRange

func NewDiffIterKeyRange(ctx context.Context, from, to prolly.Map, start, stop val.Tuple) (ProllyDiffIter, error)

NewDiffIterKeyRange creates a ProllyDiffIter that iterates only the diffs between |from| and |to| which are also between |start| and |stop|.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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