Creates connection to a database.
With the DuckDB instance, you can create one or many Connection instances using the Connect method on the Database object. While connections should be thread-safe, they will be locked during querying. It is therefore recommended that each thread uses its own connection if you are in a multithreaded environment.