crash.software
Projects
Pull Requests
Issues
Builds
dolt
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
dolt
Files
🤬
Sign In
v0.50.12
ROOT
/
go
/
store
/
datas
/
database_common.go
Search
History
914 lines
|
ISO-8859-1
|
24 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
database
types.ValueStore
rt
:
rootTracker
ns
:
tree.NodeStore
databaseCollation
ErrOptimisticLockFailed
ErrMergeNeeded
ErrAlreadyCommitted
rootTracker
Root
(ctx context.Context)
:
(hash.Hash, error)
Commit
(ctx context.Context, current, last hash.Hash)
:
(bool, error)
newDatabase
(vs *types.ValueStore, ns tree.NodeStore)
:
*database
_
:
Database
_
:
GarbageCollector
_
:
rootTracker
_
:
GarbageCollector
refmapDatasetsMap
am
:
prolly.AddressMap
Len
()
:
(uint64, error)
IterAll
(ctx context.Context, cb func(string, hash.Hash) error)
:
error
nomsDatasetsMap
m
:
types.Map
Len
()
:
(uint64, error)
IterAll
(ctx context.Context, cb func(string, hash.Hash) error)
:
error
ErrInvalidDatasetID
CommitValue
(ctx context.Context, db Database, ds Dataset, v types.Value)
:
(Dataset, error)
mergeNeeded
(currentAddr hash.Hash, ancestorAddr hash.Hash)
:
bool
assertDatasetHash
( ctx context.Context, datasets types.Map, datasetID string, currHash hash.Hash, )
:
(bool, error)
buildNewCommit
(ctx context.Context, ds Dataset, v types.Value, opts CommitOptions)
:
(*Commit, error)
hasParentHash
(opts CommitOptions, curr hash.Hash)
:
bool
*database
chunkStore
()
:
chunks.ChunkStore
nodeStore
()
:
tree.NodeStore
Stats
()
:
interface{}
StatsSummary
()
:
string
loadDatasetsNomsMap
(ctx context.Context, rootHash hash.Hash)
:
(types.Map, error)
loadDatasetsRefmap
(ctx context.Context, rootHash hash.Hash)
:
(prolly.AddressMap, error)
Datasets
(ctx context.Context)
:
(DatasetsMap, error)
GetDataset
(ctx context.Context, datasetID string)
:
(Dataset, error)
GetDatasetsByRootHash
(ctx context.Context, rootHash hash.Hash)
:
(DatasetsMap, error)
datasetFromMap
(ctx context.Context, datasetID string, dsmap DatasetsMap)
:
(Dataset, error)
readHead
(ctx context.Context, addr hash.Hash)
:
(dsHead, error)
Close
()
:
error
SetHead
(ctx context.Context, ds Dataset, newHeadAddr hash.Hash)
:
(Dataset, error)
doSetHead
(ctx context.Context, ds Dataset, addr hash.Hash)
:
error
FastForward
(ctx context.Context, ds Dataset, newHeadAddr hash.Hash)
:
(Dataset, error)
doFastForward
(ctx context.Context, ds Dataset, newHeadAddr hash.Hash)
:
error
Commit
(ctx context.Context, ds Dataset, v types.Value, opts CommitOptions)
:
(Dataset, error)
doCommit
(ctx context.Context, datasetID string, datasetCurrentAddr hash.Hash, newCommitValue types.Value)
:
error
Tag
(ctx context.Context, ds Dataset, commitAddr hash.Hash, opts TagOptions)
:
(Dataset, error)
doTag
(ctx context.Context, datasetID string, tagAddr hash.Hash, tagRef types.Ref)
:
error
UpdateWorkingSet
(ctx context.Context, ds Dataset, workingSet WorkingSetSpec, prevHash hash.Hash)
:
(Dataset, error)
doUpdateWorkingSet
(ctx context.Context, datasetID string, addr hash.Hash, ref types.Ref, currHash hash.Hash)
:
error
CommitWithWorkingSet
( ctx context.Context, commitDS, workingSetDS Dataset, val types.Value, workingSetSpec WorkingSetSpec, prevWsHash hash.Hash, opts CommitOptions, )
:
(Dataset, Dataset, error)
Delete
(ctx context.Context, ds Dataset)
:
(Dataset, error)
update
(ctx context.Context, edit func(context.Context, types.Map) (types.Map, error), editFB func(context.Context, prolly.AddressMap) (prolly.AddressMap, error))
:
error
doDelete
(ctx context.Context, datasetIDstr string)
:
error
GC
(ctx context.Context, oldGenRefs, newGenRefs hash.HashSet)
:
error
tryCommitChunks
(ctx context.Context, newRootHash hash.Hash, currentRootHash hash.Hash)
:
error
validateRefAsCommit
(ctx context.Context, r types.Ref)
:
(types.Struct, error)
doHeadUpdate
(ctx context.Context, ds Dataset, updateFunc func(ds Dataset) error)
:
(Dataset, error)
All occurrences
Please wait...
Page is in error, reload to recover