What I'm thinking of is a small CLI program which can be called and which can request a connection to whichever database invocation exists.
I'd like my app to ultimately be database-agnostic, if at all possible.
So my app can call the CLI program, and, depending on the response connect to whatever database is available. Obviously, the host, database name, user and password would need to be supplied, but if these are incorrectly given, I don't want my app to fall over.
Is this feasible?
I've had a quick look at writing such a CLI program, but I'm not sure how to proceed.