A sample application showcasing Vapor 4 connecting to an Oracle database using SwiftOracle package.
In this Vapor application, we create a Connection pool with multithreaded option in OCILIB, and then we inject it into Vapor request using StorageKey protocol and an extension of the Application class.
Each request thread gets its own connection from the pool (already created at the app startup.)
The connection pool can be configured with a minimum and a maximum number of connections so that each request doesn't have to establish a new database connection.
The following environment variables should be configured:
Added two examples of Basic Authentication using database stored credentials and a connection pool