INNER CODE UNIT · Go

init

schemahero/schemahero · plugins/postgres/main.go:11

func init() {
	// Register all schema types for RPC serialization
	shared.RegisterSchemaTypes()
}

func main() {
	// Create the postgres plugin implementation
	postgresPlugin := &PostgresPlugin{}

	// Create the RPC plugin wrapper
	rpcPlugin := &schemaheroplugin.DatabaseRPCPlugin{
		Impl: postgresPlugin,
	}

	// Create the plugin map
	pluginMap := map[string]plugin.Plugin{
		"database": rpcPlugin,
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…