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
2aa11235
ROOT
/
go
/
libraries
/
doltcore
/
doltdb
/
foreign_key_coll.go
Search
History
702 lines
|
ISO-8859-1
|
25 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
ForeignKeyCollection
foreignKeys
:
map[string]ForeignKey
ForeignKeyViolationError
ForeignKey
:
ForeignKey
Schema
:
schema.Schema
ViolationRows
:
[]row.Row
_
:
error
ForeignKeyReferentialAction
String
()
:
string
ReducedString
()
:
string
ForeignKeyReferentialAction_DefaultAction
:
ForeignKeyReferentialAction
ForeignKeyReferentialAction_Cascade
ForeignKeyReferentialAction_NoAction
ForeignKeyReferentialAction_Restrict
ForeignKeyReferentialAction_SetNull
ForeignKey
Name
:
string
TableName
:
string
TableIndex
:
string
TableColumns
:
[]uint64
ReferencedTableName
:
string
ReferencedTableIndex
:
string
ReferencedTableColumns
:
[]uint64
OnUpdate
:
ForeignKeyReferentialAction
OnDelete
:
ForeignKeyReferentialAction
UnresolvedFKDetails
:
UnresolvedFKDetails
EqualDefs
(other ForeignKey)
:
bool
DeepEquals
(other ForeignKey)
:
bool
HashOf
()
:
hash.Hash
IsSelfReferential
()
:
bool
IsResolved
()
:
bool
ValidateReferencedTableSchema
(sch schema.Schema)
:
error
ValidateTableSchema
(sch schema.Schema)
:
error
UnresolvedFKDetails
TableColumns
:
[]string
ReferencedTableColumns
:
[]string
NewForeignKeyCollection
(keys ...ForeignKey)
:
(*ForeignKeyCollection, error)
FkIndexUpdate
FkName
:
string
FromIdx
:
string
ToIdx
:
string
*ForeignKeyViolationError
Error
()
:
string
*ForeignKeyCollection
AddKeys
(fks ...ForeignKey)
:
error
AllKeys
()
:
[]ForeignKey
Contains
(foreignKeyName string)
:
bool
Count
()
:
int
GetByNameCaseInsensitive
(foreignKeyName string)
:
(ForeignKey, bool)
UpdateIndexes
(ctx context.Context, tableSchema schema.Schema, updates []FkIndexUpdate)
:
error
GetByTags
(childTags, parentTags []uint64)
:
(ForeignKey, bool)
GetMatchingKey
(fk ForeignKey, allSchemas map[string]schema.Schema)
:
(ForeignKey, bool)
Iter
(cb func(fk ForeignKey) (stop bool, err error))
:
error
KeysForTable
(tableName string)
:
(declaredFk, referencedByFk []ForeignKey)
RemoveKeys
(fks ...ForeignKey)
RemoveKeyByName
(foreignKeyName string)
:
bool
RemoveTables
(ctx context.Context, tables ...string)
:
error
RemoveAndUnresolveTables
(ctx context.Context, root *RootValue, tables ...string)
:
error
RenameTable
(oldTableName, newTableName string)
Stage
(ctx context.Context, fksToAdd []ForeignKey, fksToRemove []ForeignKey)
Tables
()
:
map[string]struct{}
ColumnHasFkRelationship
(tag uint64)
:
(ForeignKey, bool)
copy
()
:
*ForeignKeyCollection
All occurrences
Please wait...
Page is in error, reload to recover