Documentation ¶
Index ¶
- func CreateMeta(t *testing.T) []*datas.CommitMeta
- func GetMergeCommitsAfter(ctx context.Context, db *doltdb.DoltDB, current *doltdb.Commit, ...) ([]*doltdb.Commit, error)
- func GetMergeCommitsBetween(ctx context.Context, db *doltdb.DoltDB, start, end hash.Hash) ([]*doltdb.Commit, error)
- func GetRows(ctx context.Context, root doltdb.RootValue, tableName string) (types.Map, schema.Schema, error)
- func GetScoredTables(ctx context.Context, additonalNames []string, root doltdb.RootValue) ([]string, error)
- func GetTestEnv(ctx context.Context, t *testing.T) *env.DoltEnv
- type ProllyDiffIter
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
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|.
Click to show internal directories.
Click to hide internal directories.