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
/
sqle
/
tables.go
Search
History
2742 lines
|
ISO-8859-1
|
72 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
partitionMultiplier
MaxRowsPerPartition
:
uint64
MinRowsPerPartition
:
uint64
init
()
projected
Project
()
:
[]string
DoltTableStatistics
rowCount
:
uint64
createdAt
:
time.Time
histogramMap
:
sql.HistogramMap
_
:
sql.TableStatistics
DoltTable
tableName
:
string
sqlSch
:
sql.PrimaryKeySchema
db
:
SqlDatabase
lockedToRoot
:
*doltdb.RootValue
nbf
:
*types.NomsBinFormat
sch
:
schema.Schema
autoIncCol
:
schema.Column
projectedCols
:
[]uint64
projectedSchema
:
sql.Schema
opts
:
editor.Options
doltStats
:
*DoltTableStatistics
LockedToRoot
(ctx *sql.Context, root *doltdb.RootValue)
:
(*DoltTable, error)
PartitionRows2
(ctx *sql.Context, part sql.Partition)
:
(sql.RowIter2, error)
CreateIndexForForeignKey
(ctx *sql.Context, idx sql.IndexDef)
:
error
AddForeignKey
(ctx *sql.Context, fk sql.ForeignKeyConstraint)
:
error
DropForeignKey
(ctx *sql.Context, fkName string)
:
error
UpdateForeignKey
(ctx *sql.Context, fkName string, fk sql.ForeignKeyConstraint)
:
error
GetForeignKeyUpdater
(ctx *sql.Context)
:
sql.ForeignKeyUpdater
NewDoltTable
(name string, sch schema.Schema, tbl *doltdb.Table, db SqlDatabase, opts editor.Options)
:
(*DoltTable, error)
doltReadOnlyTableInterface
sql.Table2
sql.TemporaryTable
sql.IndexAddressableTable
sql.ForeignKeyTable
sql.StatisticsTable
sql.CheckTable
sql.PrimaryKeyTable
_
:
doltReadOnlyTableInterface
partitionRows
(ctx *sql.Context, t *doltdb.Table, sqlSch sql.Schema, projCols []uint64, partition sql.Partition)
:
(sql.RowIter, error)
WritableDoltTable
DoltTable
db
:
Database
ed
:
writer.TableWriter
_
:
doltTableInterface
doltTableInterface
sql.Table2
sql.UpdatableTable
sql.DeletableTable
sql.InsertableTable
sql.ReplaceableTable
sql.AutoIncrementTable
sql.TruncateableTable
sql.ProjectedTable
checksInSchema
(sch schema.Schema)
:
[]sql.CheckDefinition
_
:
sql.PartitionIter
doltTablePartitionIter
i
:
int
mu
:
*sync.Mutex
rowData
:
durable.Index
partitions
:
[]doltTablePartition
newDoltTablePartitionIter
(rowData durable.Index, partitions ...doltTablePartition)
:
*doltTablePartitionIter
_
:
sql.Partition
NoUpperBound
doltTablePartition
start
:
uint64
end
:
uint64
rowData
:
durable.Index
Key
()
:
[]byte
IteratorForPartition
(ctx context.Context, idx durable.Index)
:
(types.MapTupleIterator, error)
partitionsFromRows
(ctx context.Context, rows durable.Index)
:
([]doltTablePartition, error)
partitionsFromTableRows
(rows durable.Index)
:
([]doltTablePartition, error)
AlterableDoltTable
WritableDoltTable
doltAlterableTableInterface
sql.AlterableTable
sql.IndexAlterableTable
sql.ForeignKeyTable
sql.CheckAlterableTable
sql.PrimaryKeyAlterableTable
sql.ProjectedTable
_
:
doltAlterableTableInterface
_
:
sql.RewritableTable
orderChanged
(oldSchema, newSchema sql.PrimaryKeySchema, oldColumn, newColumn *sql.Column)
:
bool
isColumnDrop
(oldSchema sql.PrimaryKeySchema, newSchema sql.PrimaryKeySchema)
:
bool
getDroppedColumn
(oldSchema sql.PrimaryKeySchema, newSchema sql.PrimaryKeySchema)
:
*sql.Column
isPrimaryKeyChange
(oldSchema sql.PrimaryKeySchema, newSchema sql.PrimaryKeySchema)
:
bool
filterColumnFromRoot
(ctx context.Context, root *doltdb.RootValue, colTag uint64)
:
(*doltdb.RootValue, error)
filterColumnFromSch
(sch schema.Schema, colTag uint64)
:
(schema.Schema, error)
validateSchemaChange
( tableName string, oldSchema sql.PrimaryKeySchema, newSchema sql.PrimaryKeySchema, oldColumn *sql.Column, newColumn *sql.Column, idxCols []sql.IndexColumn, )
:
error
hasNonZeroPrefixLength
(idxCols []sql.IndexColumn)
:
bool
allocatePrefixLengths
(idxCols []sql.IndexColumn)
:
[]uint16
toForeignKeyConstraint
(fk doltdb.ForeignKey, dbName string, childSch, parentSch schema.Schema)
:
(cst sql.ForeignKeyConstraint, err error)
toReferentialAction
(opt doltdb.ForeignKeyReferentialAction)
:
sql.ForeignKeyReferentialAction
parseFkReferentialAction
(refOp sql.ForeignKeyReferentialAction)
:
(doltdb.ForeignKeyReferentialAction, error)
findIndexWithPrefix
(sch schema.Schema, prefixCols []string)
:
(schema.Index, bool, error)
colsAreIndexSubset
(cols, indexCols []string)
:
(ok bool, prefixCount int)
lowercaseSlice
(strs []string)
:
[]string
*DoltTableStatistics
CreatedAt
()
:
time.Time
RowCount
()
:
uint64
Histogram
(colName string)
:
(*sql.Histogram, error)
HistogramMap
()
:
sql.HistogramMap
*DoltTable
IndexedAccess
(idx sql.Index)
:
sql.IndexedTable
DoltTable
(ctx *sql.Context)
:
(*doltdb.Table, error)
DataCacheKey
(ctx *sql.Context)
:
(doltdb.DataCacheKey, bool, error)
workingRoot
(ctx *sql.Context)
:
(*doltdb.RootValue, error)
getRoot
(ctx *sql.Context)
:
(*doltdb.RootValue, error)
GetIndexes
(ctx *sql.Context)
:
([]sql.Index, error)
HasIndex
(ctx *sql.Context, idx sql.Index)
:
(bool, error)
GetAutoIncrementValue
(ctx *sql.Context)
:
(interface{}, error)
Name
()
:
string
String
()
:
string
numRows
(ctx *sql.Context)
:
(uint64, error)
Format
()
:
*types.NomsBinFormat
Schema
()
:
sql.Schema
Collation
()
:
sql.CollationID
sqlSchema
()
:
sql.PrimaryKeySchema
Partitions
(ctx *sql.Context)
:
(sql.PartitionIter, error)
IsTemporary
()
:
bool
DataLength
(ctx *sql.Context)
:
(uint64, error)
AnalyzeTable
(ctx *sql.Context)
:
error
Statistics
(ctx *sql.Context)
:
(sql.TableStatistics, error)
PrimaryKeySchema
()
:
sql.PrimaryKeySchema
PartitionRows
(ctx *sql.Context, partition sql.Partition)
:
(sql.RowIter, error)
GetChecks
(ctx *sql.Context)
:
([]sql.CheckDefinition, error)
GetDeclaredForeignKeys
(ctx *sql.Context)
:
([]sql.ForeignKeyConstraint, error)
GetReferencedForeignKeys
(ctx *sql.Context)
:
([]sql.ForeignKeyConstraint, error)
Projections
()
:
[]string
ProjectedTags
()
:
[]uint64
WithProjections
(colNames []string)
:
sql.Table
*WritableDoltTable
setRoot
(ctx *sql.Context, newRoot *doltdb.RootValue)
:
error
IndexedAccess
(idx sql.Index)
:
sql.IndexedTable
WithProjections
(colNames []string)
:
sql.Table
Inserter
(ctx *sql.Context)
:
sql.RowInserter
getTableEditor
(ctx *sql.Context)
:
(ed writer.TableWriter, err error)
Deleter
(ctx *sql.Context)
:
sql.RowDeleter
Replacer
(ctx *sql.Context)
:
sql.RowReplacer
Truncate
(ctx *sql.Context)
:
(int, error)
truncate
( ctx *sql.Context, table *doltdb.Table, sch schema.Schema, sess *dsess.DoltSession, )
:
(*doltdb.Table, error)
Updater
(ctx *sql.Context)
:
sql.RowUpdater
AutoIncrementSetter
(ctx *sql.Context)
:
sql.AutoIncrementSetter
PeekNextAutoIncrementValue
(ctx *sql.Context)
:
(interface{}, error)
GetNextAutoIncrementValue
(ctx *sql.Context, potentialVal interface{})
:
(uint64, error)
getTableAutoIncrementValue
(ctx *sql.Context)
:
(interface{}, error)
*doltTablePartitionIter
Close
(*sql.Context)
:
error
Next
(*sql.Context)
:
(sql.Partition, error)
*AlterableDoltTable
PrimaryKeySchema
()
:
sql.PrimaryKeySchema
WithProjections
(colNames []string)
:
sql.Table
AddColumn
(ctx *sql.Context, column *sql.Column, order *sql.ColumnOrder)
:
error
ShouldRewriteTable
( ctx *sql.Context, oldSchema sql.PrimaryKeySchema, newSchema sql.PrimaryKeySchema, oldColumn *sql.Column, newColumn *sql.Column, )
:
bool
isIncompatibleTypeChange
(oldColumn *sql.Column, newColumn *sql.Column)
:
bool
RewriteInserter
( ctx *sql.Context, oldSchema sql.PrimaryKeySchema, newSchema sql.PrimaryKeySchema, oldColumn *sql.Column, newColumn *sql.Column, idxCols []sql.IndexColumn, )
:
(sql.RowInserter, error)
getNewSch
(ctx context.Context, oldColumn, newColumn *sql.Column, oldSch schema.Schema, newSchema sql.PrimaryKeySchema, root, headRoot *doltdb.RootValue)
:
(schema.Schema, error)
adjustForeignKeysForDroppedPk
(ctx *sql.Context, root *doltdb.RootValue)
:
(*doltdb.RootValue, error)
DropColumn
(*sql.Context, string)
:
error
dropColumnData
(ctx *sql.Context, updatedTable *doltdb.Table, sch schema.Schema, columnName string)
:
(*doltdb.Table, error)
ModifyColumn
(ctx *sql.Context, columnName string, column *sql.Column, order *sql.ColumnOrder)
:
error
getFirstAutoIncrementValue
( ctx *sql.Context, columnName string, columnType sql.Type, table *doltdb.Table, )
:
(uint64, error)
CreateIndex
(ctx *sql.Context, idx sql.IndexDef)
:
error
DropIndex
(ctx *sql.Context, indexName string)
:
error
RenameIndex
(ctx *sql.Context, fromIndexName string, toIndexName string)
:
error
AddForeignKey
(ctx *sql.Context, sqlFk sql.ForeignKeyConstraint)
:
error
DropForeignKey
(ctx *sql.Context, fkName string)
:
error
UpdateForeignKey
(ctx *sql.Context, fkName string, sqlFk sql.ForeignKeyConstraint)
:
error
CreateIndexForForeignKey
(ctx *sql.Context, idx sql.IndexDef)
:
error
GetForeignKeyUpdater
(ctx *sql.Context)
:
sql.ForeignKeyUpdater
dropIndex
(ctx *sql.Context, indexName string)
:
(*doltdb.Table, schema.Schema, error)
updateFromRoot
(ctx *sql.Context, root *doltdb.RootValue)
:
error
CreateCheck
(ctx *sql.Context, check *sql.CheckDefinition)
:
error
DropCheck
(ctx *sql.Context, chName string)
:
error
generateCheckName
(ctx *sql.Context, check *sql.CheckDefinition)
:
(string, error)
constraintNameExists
(ctx *sql.Context, name string)
:
(bool, error)
CreatePrimaryKey
(*sql.Context, []sql.IndexColumn)
:
error
DropPrimaryKey
(ctx *sql.Context)
:
error
All occurrences
Please wait...
Page is in error, reload to recover