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
e87a8262
ROOT
/
go
/
libraries
/
doltcore
/
table
/
editor
/
pk_table_editor.go
Search
History
825 lines
|
ISO-8859-1
|
22 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
tfApproxCapacity
tupleFactories
tableEditorMaxOps
:
uint64
init
()
PKDuplicateCb
TableEditor
InsertKeyVal
(ctx context.Context, key, val types.Tuple, tagToVal map[uint64]types.Value, cb PKDuplicateCb)
:
error
DeleteByKey
(ctx context.Context, key types.Tuple, tagToVal map[uint64]types.Value)
:
error
InsertRow
(ctx context.Context, r row.Row, cb PKDuplicateCb)
:
error
UpdateRow
(ctx context.Context, old, new row.Row, cb PKDuplicateCb)
:
error
DeleteRow
(ctx context.Context, r row.Row)
:
error
GetIndexedRows
(ctx context.Context, key types.Tuple, indexName string, idxSch schema.Schema)
:
([]row.Row, error)
HasEdits
()
:
bool
MarkDirty
()
SetConstraintViolation
(ctx context.Context, k types.LesserValuable, v types.Valuable)
:
error
Table
(ctx context.Context)
:
(*doltdb.Table, error)
Schema
()
:
schema.Schema
Name
()
:
string
Format
()
:
*types.NomsBinFormat
ValueReadWriter
()
:
types.ValueReadWriter
StatementStarted
(ctx context.Context)
StatementFinished
(ctx context.Context, errored bool)
:
error
Close
(ctx context.Context)
:
error
NewTableEditor
(ctx context.Context, t *doltdb.Table, tableSch schema.Schema, name string, opts Options)
:
(TableEditor, error)
Options
ForeignKeyChecksDisabled
:
bool
Deaf
:
DbEaFactory
Tempdir
:
string
WithDeaf
(deaf DbEaFactory)
:
Options
TestEditorOptions
(vrw types.ValueReadWriter)
:
Options
pkTableEditor
t
:
*doltdb.Table
tSch
:
schema.Schema
name
:
string
opts
:
Options
tea
:
TableEditAccumulator
nbf
:
*types.NomsBinFormat
indexEds
:
[]*IndexEditor
tf
:
*types.TupleFactory
dirty
:
uint32
writeMutex
:
*sync.Mutex
cvMutex
:
*sync.Mutex
cvEditor
:
*types.MapEditor
_
:
TableEditor
newPkTableEditor
(ctx context.Context, t *doltdb.Table, tableSch schema.Schema, name string, opts Options)
:
(*pkTableEditor, error)
indexKeyToTableKey
(nbf *types.NomsBinFormat, indexKey types.Tuple, lookupTags map[uint64]int)
:
(types.Tuple, error)
formatKey
(ctx context.Context, key types.Value)
:
(string, error)
*pkTableEditor
GetIndexedRows
(ctx context.Context, key types.Tuple, indexName string, idxSch schema.Schema)
:
([]row.Row, error)
maybeReturnErrForKVP
(ctx context.Context, newKeyString, indexName string, kvp *doltKVP, isPk bool, cb PKDuplicateCb)
:
error
InsertKeyVal
(ctx context.Context, key, val types.Tuple, tagToVal map[uint64]types.Value, cb PKDuplicateCb)
:
(retErr error)
insertKeyVal
(ctx context.Context, keyHash hash.Hash, key, val types.Tuple, tagToVal map[uint64]types.Value, cb PKDuplicateCb)
:
(retErr error)
InsertRow
(ctx context.Context, dRow row.Row, cb PKDuplicateCb)
:
error
DeleteByKey
(ctx context.Context, key types.Tuple, tagToVal map[uint64]types.Value)
:
(retErr error)
DeleteRow
(ctx context.Context, dRow row.Row)
:
(retErr error)
UpdateRow
(ctx context.Context, dOldRow row.Row, dNewRow row.Row, errFunc PKDuplicateCb)
:
(retErr error)
Table
(ctx context.Context)
:
(*doltdb.Table, error)
Schema
()
:
schema.Schema
Name
()
:
string
Format
()
:
*types.NomsBinFormat
ValueReadWriter
()
:
types.ValueReadWriter
StatementStarted
(ctx context.Context)
StatementFinished
(ctx context.Context, errored bool)
:
error
SetConstraintViolation
(ctx context.Context, k types.LesserValuable, v types.Valuable)
:
error
Close
(ctx context.Context)
:
error
MarkDirty
()
HasEdits
()
:
bool
All occurrences
Please wait...
Page is in error, reload to recover