mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	Prepare multiplexing support for database plugins (#16995)
* prepare multiplexing support for database plugins
This commit is contained in:
		| @@ -5,7 +5,7 @@ import ( | ||||
| 	"os" | ||||
|  | ||||
| 	"github.com/hashicorp/vault/plugins/database/postgresql" | ||||
| 	dbplugin "github.com/hashicorp/vault/sdk/database/dbplugin/v5" | ||||
| 	"github.com/hashicorp/vault/sdk/database/dbplugin/v5" | ||||
| ) | ||||
|  | ||||
| func main() { | ||||
| @@ -18,12 +18,7 @@ func main() { | ||||
|  | ||||
| // Run instantiates a PostgreSQL object, and runs the RPC server for the plugin | ||||
| func Run() error { | ||||
| 	dbType, err := postgresql.New() | ||||
| 	if err != nil { | ||||
| 		return err | ||||
| 	} | ||||
|  | ||||
| 	dbplugin.Serve(dbType.(dbplugin.Database)) | ||||
| 	dbplugin.ServeMultiplex(postgresql.New) | ||||
|  | ||||
| 	return nil | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Max Coulombe
					Max Coulombe