Init initializes this package.
()
| 28 | |
| 29 | // Init initializes this package. |
| 30 | func 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 | } |
no test coverage detected