Documentation
¶
Index ¶
- func BuildSecondaryIndex(ctx context.Context, tbl *doltdb.Table, idx schema.Index, opts editor.Options) (durable.Index, error)
- func BuildSecondaryProllyIndex(ctx context.Context, vrw types.ValueReadWriter, sch schema.Schema, ...) (durable.Index, error)
- func GetIndexKeyMapping(sch schema.Schema, idx schema.Index) (m val.OrdinalMapping)
- type CreateIndexReturn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildSecondaryIndex ¶
func BuildSecondaryProllyIndex ¶
func BuildSecondaryProllyIndex(ctx context.Context, vrw types.ValueReadWriter, sch schema.Schema, idx schema.Index, primary prolly.Map) (durable.Index, error)
BuildSecondaryProllyIndex builds secondary index data for the given primary index row data |primary|. |sch| is the current schema of the table.
func GetIndexKeyMapping ¶
Types ¶
type CreateIndexReturn ¶
type CreateIndexReturn struct { NewTable *doltdb.Table Sch schema.Schema OldIndex schema.Index NewIndex schema.Index }
func CreateIndex ¶
func CreateIndex( ctx context.Context, table *doltdb.Table, indexName string, columns []string, isUnique bool, isUserDefined bool, comment string, opts editor.Options, ) (*CreateIndexReturn, error)
CreateIndex creates the given index on the given table with the given schema. Returns the updated table, updated schema, and created index.
Click to show internal directories.
Click to hide internal directories.