Function for creating the connection. This is useful in an interpreter setting to easily setup a connection similar to how it's done when normally invoked.