MCPcopy Create free account
hub / github.com/dolthub/doltgresql / Init

Function Init

core/init.go:30–50  ·  view source on GitHub ↗

Init initializes this package.

()

Source from the content-addressed store, hash-verified

28
29// Init initializes this package.
30func Init() {
31 doltdb.EmptyRootValue = emptyRootValue
32 doltdb.NewRootValue = newRootValue
33 types.DoltgresRootValueHumanReadableStringAtIndentationLevel = rootValueHumanReadableStringAtIndentationLevel
34 types.DoltgresRootValueWalkAddrs = rootValueWalkAddrs
35 conflicts.ClearContextValues = ClearContextValues
36 plpgsql.GetTypesCollectionFromContext = GetTypesCollectionFromContext
37 id.RegisterListener(sequenceIDListener{}, id.Section_Table)
38 typecollection.GetSqlTableFromContext = GetSqlTableFromContext
39 typecollection.GetSchemaName = GetSchemaName
40 pgtypes.GetTypesCollectionFromContext = func(ctx *sql.Context, database string) (pgtypes.TypeCollection, error) {
41 return GetTypesCollectionFromContext(ctx, database)
42 }
43 pgtypes.GetAssignmentCast = func(ctx *sql.Context, sourceType *pgtypes.DoltgresType, targetType *pgtypes.DoltgresType) (pgtypes.Cast, error) {
44 castsColl, err := GetCastsCollectionFromContext(ctx, "")
45 if err != nil {
46 return nil, err
47 }
48 return castsColl.GetAssignmentCast(ctx, sourceType, targetType)
49 }
50}

Callers 1

InitializeFunction · 0.92

Calls 4

RegisterListenerFunction · 0.92
GetAssignmentCastMethod · 0.65

Tested by

no test coverage detected