Regarding the [connection string spec](https://github.com/mongodb/specifications/blob/master/source/connection-string/connection-string-spec.rst)... There is now a more generic [connection-string], which supports everything the spec needs, and more, in case anybody is interested. For example, the database name would be `.segments[0]`, if it is specified. [connection-string]:https://github.com/vitaly-t/connection-string