INNER CODE UNIT · Go

main

schemahero/schemahero · plugins/mysql/main.go:16

func main() {
	// Create the mysql plugin implementation
	mysqlPlugin := &MySQLPlugin{}

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

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

	// Serve the plugin
	plugin.Serve(&plugin.ServeConfig{
		HandshakeConfig: shared.Handshake,
		Plugins:         pluginMap,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…