symbols

package
v1.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package symbols holds the yaegi symbol map for morphic migrations.

The map exposes the public API of github.com/ocomsoft/morphic/migrate to interpreted migration files so they can be loaded without invoking the Go toolchain. Users who write migrations whose RunSQL bodies (or other hand-written code) import third-party packages can call Register to add extra symbol maps before the CLI loads migrations.

Index

Constants

This section is empty.

Variables

View Source
var Symbols = map[string]map[string]reflect.Value{}

Symbols is the global yaegi symbol map. The package's own init() functions (in auto-generated files like migrate.go) populate it with entries for the migrate package. Third-party callers can add more entries via Register.

Functions

func Register

func Register(extra map[string]map[string]reflect.Value)

Register merges extra symbol maps into Symbols. It is the public extension point for projects whose migration source files import packages outside of the migrate package's symbol map. Generate the input map with `yaegi extract <pkg>` and call Register from an init() in your project.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL